]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
mv643xx_eth: deal with unexpected ethernet header sizes
authorLennert Buytenhek <buytenh@wantstofly.org>
Fri, 19 Sep 2008 02:05:00 +0000 (04:05 +0200)
committerLennert Buytenhek <buytenh@marvell.com>
Fri, 19 Sep 2008 03:13:31 +0000 (05:13 +0200)
commit4df89bd5a5fc33860f15f5f001a78f2b3f150725
treeb250546aa4e801a207b1df7acfcf730fa9f426ee
parent170e7108a368c52df1ec466966fd1db6e45a7ad2
mv643xx_eth: deal with unexpected ethernet header sizes

When the IP header doesn't start 14, 18, 22 or 26 bytes into the packet
(which are the only four cases that the hardware can deal with if asked
to do IP checksumming on transmit), invoke the software checksum helper
instead of letting the packet go out with a corrupt checksum inserted
into the packet in the wrong place.

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