]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
forcedeth: fix checksum flag
authorAyaz Abdulla <aabdulla@nvidia.com>
Thu, 28 Aug 2008 19:40:03 +0000 (19:40 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Sep 2008 11:44:19 +0000 (04:44 -0700)
commitd584a416f04eb2916d3b3dbd88a05d5210276e55
treee531f9690bdbfbaa36942db0ebd629fb878afd2a
parentd53ff904c039b2bb6e9645ca276def571993e387
forcedeth: fix checksum flag

commit edcfe5f7e307846e578fb88d69fa27051fded0ab upstream

Fix the checksum feature advertised in device flags.  The hardware support
TCP/UDP over IPv4 and TCP/UDP over IPv6 (without IPv6 extension headers).
However, the kernel feature flags do not distinguish IPv6 with/without
extension headers.

Therefore, the driver needs to use NETIF_F_IP_CSUM instead of
NETIF_F_HW_CSUM since the latter includes all IPv6 packets.

A future patch can be created to check for extension headers and perform
software checksum calculation.

Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/forcedeth.c