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)
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>

No differences found