]> git.baikalelectronics.ru Git - kernel.git/commit
mv643xx_eth: enforce multiple-of-8-bytes receive buffer size restriction
authorLennert Buytenhek <buytenh@wantstofly.org>
Sun, 24 Aug 2008 01:00:20 +0000 (03:00 +0200)
committerLennert Buytenhek <buytenh@marvell.com>
Sun, 24 Aug 2008 01:33:44 +0000 (03:33 +0200)
commitab335695ca3d43618a4e51bfb4a79ae7c0ea279b
treea1e1854fe95054adf2c3336bb5713936f2ab4efe
parent0d61bba45f2f5bd96bac5a6ced3fe0d520a37451
mv643xx_eth: enforce multiple-of-8-bytes receive buffer size restriction

The mv643xx_eth hardware ignores the lower three bits of the buffer
size field in receive descriptors, causing the reception of full-sized
packets to fail at some MTUs.  Fix this by rounding the size of
allocated receive buffers up to a multiple of eight bytes.

While we are at it, add a bit of extra space to each receive buffer so
that we can handle multiple vlan tags on ingress.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
drivers/net/mv643xx_eth.c