Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290055
b: refs/heads/master
c: 43480ae
h: refs/heads/master
i:
  290053: 256388a
  290051: b7fa525
  290047: 25ab84a
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Feb 8, 2012
1 parent a9ee810 commit b5bffee
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 377cb4f9e763465984b9bb5187747fd9b02a14c0
refs/heads/master: 43480aecb1f538d4f6dd8b2c5d2b71fb98659072
10 changes: 8 additions & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3491,14 +3491,20 @@ static inline gro_result_t
__napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb)
{
struct sk_buff *p;
unsigned int maclen = skb->dev->hard_header_len;

for (p = napi->gro_list; p; p = p->next) {
unsigned long diffs;

diffs = (unsigned long)p->dev ^ (unsigned long)skb->dev;
diffs |= p->vlan_tci ^ skb->vlan_tci;
diffs |= compare_ether_header(skb_mac_header(p),
skb_gro_mac_header(skb));
if (maclen == ETH_HLEN)
diffs |= compare_ether_header(skb_mac_header(p),
skb_gro_mac_header(skb));
else if (!diffs)
diffs = memcmp(skb_mac_header(p),
skb_gro_mac_header(skb),
maclen);
NAPI_GRO_CB(p)->same_flow = !diffs;
NAPI_GRO_CB(p)->flush = 0;
}
Expand Down

0 comments on commit b5bffee

Please sign in to comment.