aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/gre_offload.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/gre_offload.c')
-rw-r--r--net/ipv4/gre_offload.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/ipv4/gre_offload.c b/net/ipv4/gre_offload.c
index a4d7965fb880..d3fe2ac05167 100644
--- a/net/ipv4/gre_offload.c
+++ b/net/ipv4/gre_offload.c
@@ -172,10 +172,14 @@ static struct sk_buff **gre_gro_receive(struct sk_buff **head,
172 } 172 }
173 173
174 /* Don't bother verifying checksum if we're going to flush anyway. */ 174 /* Don't bother verifying checksum if we're going to flush anyway. */
175 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush && 175 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush) {
176 skb_gro_checksum_simple_validate(skb)) 176 if (skb_gro_checksum_simple_validate(skb))
177 goto out_unlock; 177 goto out_unlock;
178 178
179 skb_gro_checksum_try_convert(skb, IPPROTO_GRE, 0,
180 null_compute_pseudo);
181 }
182
179 flush = 0; 183 flush = 0;
180 184
181 for (p = *head; p; p = p->next) { 185 for (p = *head; p; p = p->next) {