net: Infrastructure for CHECKSUM_PARTIAL with remote checsum offload
authorTom Herbert <therbert@google.com>
Wed, 11 Feb 2015 00:30:31 +0000 (16:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Feb 2015 23:12:12 +0000 (15:12 -0800)
commit15e2396d4e3ce23188852b74d924107982c63b42
tree98ffbc9b291dbd31872cea91843f69d2bcbdf83d
parentbaa32ff42871f2d4aca9c08c9403d0e497325564
net: Infrastructure for CHECKSUM_PARTIAL with remote checsum offload

This patch adds infrastructure so that remote checksum offload can
set CHECKSUM_PARTIAL instead of calling csum_partial and writing
the modfied checksum field.

Add skb_remcsum_adjust_partial function to set an skb for using
CHECKSUM_PARTIAL with remote checksum offload.  Changed
skb_remcsum_process and skb_gro_remcsum_process to take a boolean
argument to indicate if checksum partial can be set or the
checksum needs to be modified using the normal algorithm.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/linux/netdevice.h
include/linux/skbuff.h
net/core/dev.c
net/ipv4/fou.c