aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/udp_offload.c2
-rw-r--r--net/ipv6/udp_offload.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c
index 52d5f46abf86..adab393b2fe5 100644
--- a/net/ipv4/udp_offload.c
+++ b/net/ipv4/udp_offload.c
@@ -294,7 +294,7 @@ static struct sk_buff **udp4_gro_receive(struct sk_buff **head,
294 goto flush; 294 goto flush;
295 295
296 /* Don't bother verifying checksum if we're going to flush anyway. */ 296 /* Don't bother verifying checksum if we're going to flush anyway. */
297 if (!NAPI_GRO_CB(skb)->flush) 297 if (NAPI_GRO_CB(skb)->flush)
298 goto skip; 298 goto skip;
299 299
300 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check, 300 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check,
diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
index a1ad34b1c4ec..de85f809bf29 100644
--- a/net/ipv6/udp_offload.c
+++ b/net/ipv6/udp_offload.c
@@ -138,7 +138,7 @@ static struct sk_buff **udp6_gro_receive(struct sk_buff **head,
138 goto flush; 138 goto flush;
139 139
140 /* Don't bother verifying checksum if we're going to flush anyway. */ 140 /* Don't bother verifying checksum if we're going to flush anyway. */
141 if (!NAPI_GRO_CB(skb)->flush) 141 if (NAPI_GRO_CB(skb)->flush)
142 goto skip; 142 goto skip;
143 143
144 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check, 144 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check,