* [PATCH] macb: allow reception of large (>1518 bytes) frames
@ 2010-04-07 14:59 Peter Korsgaard
2010-04-08 4:53 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Peter Korsgaard @ 2010-04-07 14:59 UTC (permalink / raw)
To: davem, haavard.skinnemoen, netdev, linux-kernel; +Cc: Peter Korsgaard
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>
---
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 c8a18a6..4dde9db 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))
--
1.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] macb: allow reception of large (>1518 bytes) frames
2010-04-07 14:59 [PATCH] macb: allow reception of large (>1518 bytes) frames Peter Korsgaard
@ 2010-04-08 4:53 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-04-08 4:53 UTC (permalink / raw)
To: peter.korsgaard; +Cc: haavard.skinnemoen, netdev, linux-kernel
From: Peter Korsgaard <peter.korsgaard@barco.com>
Date: Wed, 7 Apr 2010 16:59:49 +0200
> 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>
Applied to net-next-2.6, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-08 4:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-07 14:59 [PATCH] macb: allow reception of large (>1518 bytes) frames Peter Korsgaard
2010-04-08 4:53 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).