From: David S. Miller Date: Sat, 16 Nov 2013 02:11:16 +0000 (-0500) Subject: net: Handle CHECKSUM_COMPLETE more adequately in pskb_trim_rcsum(). X-Git-Tag: v3.13-rc1~33^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=018c5bba052b3a383d83cf0c756da0e7bc748397;p=pandora-kernel.git net: Handle CHECKSUM_COMPLETE more adequately in pskb_trim_rcsum(). Currently pskb_trim_rcsum() just balks on CHECKSUM_COMPLETE packets and remarks them as CHECKSUM_NONE, forcing a software checksum validation later. We have all of the mechanics available to fixup the skb->csum value, even for complicated fragmented packets, via the helpers skb_checksum() and csum_sub(). So just use them. Based upon a suggestion by Herbert Xu. Signed-off-by: David S. Miller --- Reading git-diff-tree failed