[NET]: IPV6 checksum offloading in network devices
authorStephen Hemminger <shemminger@linux-foundation.org>
Wed, 27 Jun 2007 07:47:37 +0000 (00:47 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 11 Jul 2007 05:15:52 +0000 (22:15 -0700)
commitd212f87b068c9d72065ef579d85b5ee6b8b59381
treea194d5c667c277c7ea5392c9cf97857a0cd1d321
parentd3d6dd3adaaad71eae20902ed81808a66a40a5b9
[NET]: IPV6 checksum offloading in network devices

The existing model for checksum offload does not correctly handle
devices that can offload IPV4 and IPV6 only. The NETIF_F_HW_CSUM flag
implies device can do any arbitrary protocol.

This patch:
 * adds NETIF_F_IPV6_CSUM for those devices
 * fixes bnx2 and tg3 devices that need it
 * add NETIF_F_IPV6_CSUM to ipv6 output (incl GSO)
 * fixes assumptions about NETIF_F_ALL_CSUM in nat
 * adjusts bridge union of checksumming computation

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c
drivers/net/tg3.c
include/linux/netdevice.h
net/bridge/br_if.c
net/core/dev.c
net/ipv4/af_inet.c
net/ipv4/ip_output.c
net/ipv4/netfilter/nf_nat_helper.c
net/ipv6/ipv6_sockglue.c