From: Herbert Xu Date: Thu, 8 Apr 2010 12:53:40 +0000 (+0200) Subject: netfilter: only do skb_checksum_help on CHECKSUM_PARTIAL in ip6_queue X-Git-Tag: upstream/snapshot3+hdmi~14568^2~168^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dd59cc99131fb4a2775c00928b0f24b9e192a76;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git netfilter: only do skb_checksum_help on CHECKSUM_PARTIAL in ip6_queue As we will set ip_summed to CHECKSUM_NONE when necessary in ipq_mangle_ipv6, there is no need to zap CHECKSUM_COMPLETE in ipq_build_packet_message. Signed-off-by: Herbert Xu Signed-off-by: Patrick McHardy --- diff --git a/net/ipv6/netfilter/ip6_queue.c b/net/ipv6/netfilter/ip6_queue.c index 7854052..39856a2 100644 --- a/net/ipv6/netfilter/ip6_queue.c +++ b/net/ipv6/netfilter/ip6_queue.c @@ -161,8 +161,7 @@ ipq_build_packet_message(struct nf_queue_entry *entry, int *errp) break; case IPQ_COPY_PACKET: - if ((entry->skb->ip_summed == CHECKSUM_PARTIAL || - entry->skb->ip_summed == CHECKSUM_COMPLETE) && + if (entry->skb->ip_summed == CHECKSUM_PARTIAL && (*errp = skb_checksum_help(entry->skb))) { read_unlock_bh(&queue_lock); return NULL;