From: Tom Herbert Date: Wed, 11 Jun 2014 01:54:13 +0000 (-0700) Subject: net: Preserve CHECKSUM_COMPLETE at validation X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~12^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d0c2b95bc57cf8fdc0e7b3e9d7e751eb65ad052;p=pandora-kernel.git net: Preserve CHECKSUM_COMPLETE at validation Currently when the first checksum in a packet is validated using CHECKSUM_COMPLETE, ip_summed is overwritten to be CHECKSUM_UNNECESSARY so that any subsequent checksums in the packet are not correctly validated. This patch adds csum_valid flag in sk_buff and uses that to indicate validated checksum instead of setting CHECKSUM_UNNECESSARY. The bit is set accordingly in the skb_checksum_validate_* functions. The flag is checked in skb_checksum_complete, so that validation is communicated between checksum_init and checksum_complete sequence in TCP and UDP. Signed-off-by: Tom Herbert Signed-off-by: David S. Miller --- Reading git-diff-tree failed