net: Save software checksum complete
authorTom Herbert <therbert@google.com>
Wed, 11 Jun 2014 01:54:19 +0000 (18:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 22:46:13 +0000 (15:46 -0700)
commit7e3cead5172927732f51fde77fef6f521e22f209
tree7b7cad61aa68ba302c395b9a1ea3dafb69881d0d
parent5d0c2b95bc57cf8fdc0e7b3e9d7e751eb65ad052
net: Save software checksum complete

In skb_checksum complete, if we need to compute the checksum for the
packet (via skb_checksum) save the result as CHECKSUM_COMPLETE.
Subsequent checksum verification can use this.

Also, added csum_complete_sw flag to distinguish between software and
hardware generated checksum complete, we should always be able to trust
the software computation.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/datagram.c
net/ipv4/gre_offload.c
net/sunrpc/socklib.c