Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265334
b: refs/heads/master
c: 1ff1986
h: refs/heads/master
v: v3
  • Loading branch information
Changli Gao authored and David S. Miller committed Aug 19, 2011
1 parent bde3001 commit 93f14c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 939cf3069d31a6e0e335eb5e08ef04895f2d013d
refs/heads/master: 1ff1986fc94ee711df3cf19d45f2abf351436a6d
8 changes: 8 additions & 0 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2529,6 +2529,7 @@ void __skb_get_rxhash(struct sk_buff *skb)
int nhoff, hash = 0, poff;
const struct ipv6hdr *ip6;
const struct iphdr *ip;
const struct vlan_hdr *vlan;
u8 ip_proto;
u32 addr1, addr2;
u16 proto;
Expand Down Expand Up @@ -2565,6 +2566,13 @@ void __skb_get_rxhash(struct sk_buff *skb)
addr2 = (__force u32) ip6->daddr.s6_addr32[3];
nhoff += 40;
break;
case __constant_htons(ETH_P_8021Q):
if (!pskb_may_pull(skb, sizeof(*vlan) + nhoff))
goto done;
vlan = (const struct vlan_hdr *) (skb->data + nhoff);
proto = vlan->h_vlan_encapsulated_proto;
nhoff += sizeof(*vlan);
goto again;
default:
goto done;
}
Expand Down

0 comments on commit 93f14c2

Please sign in to comment.