From: Tom Herbert Date: Sun, 31 Aug 2014 22:12:43 +0000 (-0700) Subject: udp: Add support for doing checksum unnecessary conversion X-Git-Tag: fixes-against-v3.18-rc2~81^2~177^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2abb7cdc0dc84e99b76ef983a1ae1978922aa9b3;p=pandora-kernel.git udp: Add support for doing checksum unnecessary conversion Add support for doing CHECKSUM_UNNECESSARY to CHECKSUM_COMPLETE conversion in UDP tunneling path. In the normal UDP path, we call skb_checksum_try_convert after locating the UDP socket. The check is that checksum conversion is enabled for the socket (new flag in UDP socket) and that checksum field is non-zero. In the UDP GRO path, we call skb_gro_checksum_try_convert after checksum is validated and checksum field is non-zero. Since this is already in GRO we assume that checksum conversion is always wanted. Signed-off-by: Tom Herbert Signed-off-by: David S. Miller --- Reading git-diff-tree failed