aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/af_inet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 644cc5535319..5abee4c97449 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1248,9 +1248,9 @@ static struct sk_buff **inet_gro_receive(struct sk_buff **head,
1248 struct iphdr *iph; 1248 struct iphdr *iph;
1249 unsigned int hlen; 1249 unsigned int hlen;
1250 unsigned int off; 1250 unsigned int off;
1251 unsigned int id;
1251 int flush = 1; 1252 int flush = 1;
1252 int proto; 1253 int proto;
1253 int id;
1254 1254
1255 off = skb_gro_offset(skb); 1255 off = skb_gro_offset(skb);
1256 hlen = off + sizeof(*iph); 1256 hlen = off + sizeof(*iph);
@@ -1274,9 +1274,9 @@ static struct sk_buff **inet_gro_receive(struct sk_buff **head,
1274 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) 1274 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl)))
1275 goto out_unlock; 1275 goto out_unlock;
1276 1276
1277 flush = ntohs(iph->tot_len) != skb_gro_len(skb) || 1277 id = ntohl(*(u32 *)&iph->id);
1278 iph->frag_off != htons(IP_DF); 1278 flush = (u16)((ntohl(*(u32 *)iph) ^ skb_gro_len(skb)) | (id ^ IP_DF));
1279 id = ntohs(iph->id); 1279 id >>= 16;
1280 1280
1281 for (p = *head; p; p = p->next) { 1281 for (p = *head; p; p = p->next) {
1282 struct iphdr *iph2; 1282 struct iphdr *iph2;