net: rps: support PPPOE session messages
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- net/core/dev.c | 8 ++++++++ 1 file changed, 8 insertions(+)
net/core/dev.c +8 -0
@@ -134,6 +134,7 @@#include <linux/inetdevice.h> #include <linux/cpu_rmap.h> #include <linux/if_tunnel.h> +#include <linux/if_pppox.h> #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; }
David Miller
maintainerFrom: Changli Gao <[email protected]>
Date: Fri, 19 Aug 2011 13:53:55 +0800
Quoted 4 lines
Inspect the payload of PPPOE session messages for the 4 tuples to generate
skb->rxhash.Signed-off-by Changli Gao <[email protected]>
Also applied, thank you.