Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266196
b: refs/heads/master
c: 5dd17e0
h: refs/heads/master
v: v3
  • Loading branch information
Changli Gao authored and David S. Miller committed Sep 28, 2011
1 parent 50b6b3f commit 5496093
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 16e5726269611b71c930054ffe9b858c1cea88eb
refs/heads/master: 5dd17e08f333cde0fa11000792e33d8d39b5599f
12 changes: 11 additions & 1 deletion trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
#include <linux/cpu_rmap.h>
#include <linux/if_tunnel.h>
#include <linux/if_pppox.h>
#include <linux/ppp_defs.h>

#include "net-sysfs.h"

Expand Down Expand Up @@ -2556,6 +2557,7 @@ void __skb_get_rxhash(struct sk_buff *skb)
again:
switch (proto) {
case __constant_htons(ETH_P_IP):
ip:
if (!pskb_may_pull(skb, sizeof(*ip) + nhoff))
goto done;

Expand All @@ -2569,6 +2571,7 @@ void __skb_get_rxhash(struct sk_buff *skb)
nhoff += ip->ihl * 4;
break;
case __constant_htons(ETH_P_IPV6):
ipv6:
if (!pskb_may_pull(skb, sizeof(*ip6) + nhoff))
goto done;

Expand All @@ -2591,7 +2594,14 @@ void __skb_get_rxhash(struct sk_buff *skb)
proto = *((__be16 *) (skb->data + nhoff +
sizeof(struct pppoe_hdr)));
nhoff += PPPOE_SES_HLEN;
goto again;
switch (proto) {
case __constant_htons(PPP_IP):
goto ip;
case __constant_htons(PPP_IPV6):
goto ipv6;
default:
goto done;
}
default:
goto done;
}
Expand Down

0 comments on commit 5496093

Please sign in to comment.