net: add skb_checksum_complete_unset
authorTom Herbert <tom@herbertland.com>
Mon, 20 Apr 2015 21:10:04 +0000 (14:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2015 01:57:26 +0000 (21:57 -0400)
commit4e18b9adf2f910ec4d30b811a74a5b626e6c6125
tree59a9b374ff9be0d2fba7c4e8f3eb7a921c1d0cdf
parenta068833bbf0ede9203410f8fd186178c758ade9b
net: add skb_checksum_complete_unset

This function changes ip_summed to CHECKSUM_NONE if CHECKSUM_COMPLETE
is set. This is called to discard checksum-complete when packet
is being modified and checksum is not pulled for headers in a layer.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h