Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143453
b: refs/heads/master
c: fc59f9a
h: refs/heads/master
i:
  143451: f66e7ac
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Apr 14, 2009
1 parent 41ee4b6 commit 7359139
Show file tree
Hide file tree
Showing 2 changed files with 4 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: ce8632ba6b3ed0bf2efa98672e2808de34250389
refs/heads/master: fc59f9a3bf8096a1f68a8b78ada7a0e0ab9236b2
5 changes: 3 additions & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2328,8 +2328,10 @@ static int napi_gro_complete(struct sk_buff *skb)
struct list_head *head = &ptype_base[ntohs(type) & PTYPE_HASH_MASK];
int err = -ENOENT;

if (NAPI_GRO_CB(skb)->count == 1)
if (NAPI_GRO_CB(skb)->count == 1) {
skb_shinfo(skb)->gso_size = 0;
goto out;
}

rcu_read_lock();
list_for_each_entry_rcu(ptype, head, list) {
Expand All @@ -2348,7 +2350,6 @@ static int napi_gro_complete(struct sk_buff *skb)
}

out:
skb_shinfo(skb)->gso_size = 0;
return netif_receive_skb(skb);
}

Expand Down

0 comments on commit 7359139

Please sign in to comment.