From: Peter Korsgaard Date: Thu, 8 Apr 2010 04:53:41 +0000 (-0700) Subject: macb: allow reception of large (>1518 bytes) frames X-Git-Tag: MMI-PSA29.97-13-9~23873^2~535 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8dd4bd002a32e787978fcb2be1e6ab09a3eb04ae;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git macb: allow reception of large (>1518 bytes) frames 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/macb.c b/drivers/net/macb.c index eab121945d7c..cf7debc865b3 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -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))