macb: allow reception of large (>1518 bytes) frames
authorPeter Korsgaard <peter.korsgaard@barco.com>
Thu, 8 Apr 2010 04:53:41 +0000 (21:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2010 04:53:41 +0000 (21:53 -0700)
Enable BIG bit in the network configuration register, so the MAC
doesn't reject big frames (E.G. when vlans are used).

Signed-off-by: Peter Korsgaard <peter.korsgaard@barco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macb.c

index eab121945d7c990605a2c3a6acaabe6772204e7f..cf7debc865b3919457d45c42605c3fa92a7d8f73 100644 (file)
@@ -793,6 +793,7 @@ static void macb_init_hw(struct macb *bp)
        config = macb_readl(bp, NCFGR) & MACB_BF(CLK, -1L);
        config |= MACB_BIT(PAE);                /* PAuse Enable */
        config |= MACB_BIT(DRFCS);              /* Discard Rx FCS */
+       config |= MACB_BIT(BIG);                /* Receive oversized frames */
        if (bp->dev->flags & IFF_PROMISC)
                config |= MACB_BIT(CAF);        /* Copy All Frames */
        if (!(bp->dev->flags & IFF_BROADCAST))