[PATCH] macb: allow reception of large (>1518 bytes) frames

Previous thread: Re: USB transfer_buffer allocations on 64bit systems by Alan Stern on Wednesday, April 7, 2010 - 7:59 am. (17 messages)

Next thread: [PATCH] IIO: Fix adding more than one iio device eventset by yauhen.kharuzhy on Wednesday, April 7, 2010 - 8:03 am. (4 messages)
From: Peter Korsgaard
Date: Wednesday, April 7, 2010 - 7:59 am

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

--

From: David Miller
Date: Wednesday, April 7, 2010 - 9:53 pm

From: Peter Korsgaard <peter.korsgaard@barco.com>

Applied to net-next-2.6, thanks.
--

Previous thread: Re: USB transfer_buffer allocations on 64bit systems by Alan Stern on Wednesday, April 7, 2010 - 7:59 am. (17 messages)

Next thread: [PATCH] IIO: Fix adding more than one iio device eventset by yauhen.kharuzhy on Wednesday, April 7, 2010 - 8:03 am. (4 messages)