net: add skb_checksum_complete_unset
authorTom Herbert <tom@herbertland.com>
Mon, 20 Apr 2015 21:10:04 +0000 (14:10 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 May 2015 11:07:55 +0000 (07:07 -0400)
commitdc7071483edd513abad3751b57a1dd832ca31156
treed82fd9b1c23e56682f074ed48d1501fa40a904d4
parent7aca2472093e9353793faeede03c94d00ce42fb1
net: add skb_checksum_complete_unset

[ Upstream commit 4e18b9adf2f910ec4d30b811a74a5b626e6c6125 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
include/linux/skbuff.h