[PATCH] mv643xx_eth: Request HW checksum generation only for IPv4
authorWolfram Joost <pegasos@frokaschwei.de>
Mon, 16 Jan 2006 23:57:41 +0000 (16:57 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 17 Jan 2006 12:23:38 +0000 (07:23 -0500)
commit63890576a3bfd5c6aea86fb72236682480865bc0
tree1d9142884b2d831b7f9b55714baa110457e35710
parent8f5187035ad475c90ca865318daa09ba43bc3e68
[PATCH] mv643xx_eth: Request HW checksum generation only for IPv4

This patch removes the NETIF_F_HW_CSUM flag to be able to use other protocols
than IPv4. Hardware checksums for IPv4 should continue to work because
NETIF_F_IP_CSUM is still set.  The sanity-check has been enhanced to check
the used protocol and to not access skb->iph for non-ipv4-packets.

Signed-off-by: Wolfram Joost <pegasos@frokaschwei.de>
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
 mv643xx_eth.c |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/mv643xx_eth.c