From: Changli Gao Date: Fri, 19 Aug 2011 06:23:47 +0000 (-0700) Subject: net: rps: support PPPOE session messages X-Git-Tag: next-20110822~42^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ae1511bf769cafeae5ab61aaf9947a16a22cbd10;p=karo-tx-linux.git net: rps: support PPPOE session messages Inspect the payload of PPPOE session messages for the 4 tuples to generate skb->rxhash. Signed-off-by: Changli Gao Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index be7ee506f17a..c2442b46646e 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -134,6 +134,7 @@ #include #include #include +#include #include "net-sysfs.h" @@ -2573,6 +2574,13 @@ again: proto = vlan->h_vlan_encapsulated_proto; nhoff += sizeof(*vlan); goto again; + case __constant_htons(ETH_P_PPP_SES): + if (!pskb_may_pull(skb, PPPOE_SES_HLEN + nhoff)) + goto done; + proto = *((__be16 *) (skb->data + nhoff + + sizeof(struct pppoe_hdr))); + nhoff += PPPOE_SES_HLEN; + goto again; default: goto done; }