Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122950
b: refs/heads/master
c: 0da2afd
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Dec 26, 2008
1 parent 6d7faed commit d4aaec5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 843813453f52e3378fc988c8364063fd4cb9d0e3
refs/heads/master: 0da2afd59653d2edf5c8e0f09b23f367ab5bc80f
5 changes: 4 additions & 1 deletion trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2390,6 +2390,7 @@ int napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb)
__be16 type = skb->protocol;
struct list_head *head = &ptype_base[ntohs(type) & PTYPE_HASH_MASK];
int count = 0;
int same_flow;
int mac_len;

if (!(skb->dev->features & NETIF_F_GRO))
Expand Down Expand Up @@ -2425,6 +2426,8 @@ int napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb)
if (&ptype->list == head)
goto normal;

same_flow = NAPI_GRO_CB(skb)->same_flow;

if (pp) {
struct sk_buff *nskb = *pp;

Expand All @@ -2434,7 +2437,7 @@ int napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb)
count--;
}

if (NAPI_GRO_CB(skb)->same_flow)
if (same_flow)
goto ok;

if (NAPI_GRO_CB(skb)->flush || count >= MAX_GRO_SKBS) {
Expand Down

0 comments on commit d4aaec5

Please sign in to comment.