netfilter: only do skb_checksum_help on CHECKSUM_PARTIAL in ip_queue
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 Apr 2010 12:52:28 +0000 (14:52 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 8 Apr 2010 12:52:28 +0000 (14:52 +0200)
commit9e56c21486f2a64473f36fa49475fd253422fbf6
tree08e2a613a0e473e491f327422417f47dd67f9a9a
parent3d91c1a848c812e0e66e7e57f076667822cb460e
netfilter: only do skb_checksum_help on CHECKSUM_PARTIAL in ip_queue

While doing yet another audit on ip_summed I noticed ip_queue
calling skb_checksum_help unnecessarily.  As we will set ip_summed
to CHECKSUM_NONE when necessary in ipq_mangle_ipv4, there is no
need to zap CHECKSUM_COMPLETE in ipq_build_packet_message.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/ip_queue.c