Commit e9f13cab authored by Herbert Xu's avatar Herbert Xu Committed by Patrick McHardy

netfilter: only do skb_checksum_help on CHECKSUM_PARTIAL in nfnetlink_queue

As we will set ip_summed to CHECKSUM_NONE when necessary in
nfqnl_mangle, there is no need to zap CHECKSUM_COMPLETE in
nfqnl_build_packet_message.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 5dd59cc9
...@@ -245,8 +245,7 @@ nfqnl_build_packet_message(struct nfqnl_instance *queue, ...@@ -245,8 +245,7 @@ nfqnl_build_packet_message(struct nfqnl_instance *queue,
break; break;
case NFQNL_COPY_PACKET: case NFQNL_COPY_PACKET:
if ((entskb->ip_summed == CHECKSUM_PARTIAL || if (entskb->ip_summed == CHECKSUM_PARTIAL &&
entskb->ip_summed == CHECKSUM_COMPLETE) &&
skb_checksum_help(entskb)) { skb_checksum_help(entskb)) {
spin_unlock_bh(&queue->lock); spin_unlock_bh(&queue->lock);
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment