diff options
author | Peter Korsgaard <peter.korsgaard@barco.com> | 2010-04-08 00:53:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-08 00:53:41 -0400 |
commit | 8dd4bd002a32e787978fcb2be1e6ab09a3eb04ae (patch) | |
tree | d60b5936c316280d088b7b1336b12479532aef00 /drivers/net/macb.c | |
parent | 1a98314273ad6a3dc048925cf71d9a8cee3560d8 (diff) |
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 <peter.korsgaard@barco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r-- | drivers/net/macb.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
793 | config = macb_readl(bp, NCFGR) & MACB_BF(CLK, -1L); | 793 | config = macb_readl(bp, NCFGR) & MACB_BF(CLK, -1L); |
794 | config |= MACB_BIT(PAE); /* PAuse Enable */ | 794 | config |= MACB_BIT(PAE); /* PAuse Enable */ |
795 | config |= MACB_BIT(DRFCS); /* Discard Rx FCS */ | 795 | config |= MACB_BIT(DRFCS); /* Discard Rx FCS */ |
796 | config |= MACB_BIT(BIG); /* Receive oversized frames */ | ||
796 | if (bp->dev->flags & IFF_PROMISC) | 797 | if (bp->dev->flags & IFF_PROMISC) |
797 | config |= MACB_BIT(CAF); /* Copy All Frames */ | 798 | config |= MACB_BIT(CAF); /* Copy All Frames */ |
798 | if (!(bp->dev->flags & IFF_BROADCAST)) | 799 | if (!(bp->dev->flags & IFF_BROADCAST)) |