]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37a5360c65c50650417e3d8de1f96af873acd14e
tree7b7cad61aa68ba302c395b9a1ea3dafb69881d0d
parent53a82cf20519d3fe2eb48f34498aafcd9ffa1db4
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