Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327387
b: refs/heads/master
c: a9e050f
h: refs/heads/master
i:
  327385: faced58
  327383: 0937c92
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Aug 6, 2012
1 parent e810252 commit fbd25ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14a196807482e6fc74f15fc03176d5c08880588f
refs/heads/master: a9e050f4e7f9d36afe0dcc0bddba864ee442715e
4 changes: 2 additions & 2 deletions trunk/net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ static struct sk_buff **inet_gro_receive(struct sk_buff **head,
if (*(u8 *)iph != 0x45)
goto out_unlock;

if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl)))
if (unlikely(ip_fast_csum((u8 *)iph, 5)))
goto out_unlock;

id = ntohl(*(__be32 *)&iph->id);
Expand All @@ -1380,7 +1380,6 @@ static struct sk_buff **inet_gro_receive(struct sk_buff **head,
iph2 = ip_hdr(p);

if ((iph->protocol ^ iph2->protocol) |
(iph->tos ^ iph2->tos) |
((__force u32)iph->saddr ^ (__force u32)iph2->saddr) |
((__force u32)iph->daddr ^ (__force u32)iph2->daddr)) {
NAPI_GRO_CB(p)->same_flow = 0;
Expand All @@ -1390,6 +1389,7 @@ static struct sk_buff **inet_gro_receive(struct sk_buff **head,
/* All fields must match except length and checksum. */
NAPI_GRO_CB(p)->flush |=
(iph->ttl ^ iph2->ttl) |
(iph->tos ^ iph2->tos) |
((u16)(ntohs(iph2->id) + NAPI_GRO_CB(p)->count) ^ id);

NAPI_GRO_CB(p)->flush |= flush;
Expand Down

0 comments on commit fbd25ec

Please sign in to comment.