net: rps: support 802.1Q
authorChangli Gao <xiaosuo@gmail.com>
Fri, 19 Aug 2011 05:07:54 +0000 (22:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2011 05:07:54 +0000 (22:07 -0700)
commit1ff1986fc94ee711df3cf19d45f2abf351436a6d
tree8301dc9db8afac2dcd7cc864ac1abd56657d6f27
parent939cf3069d31a6e0e335eb5e08ef04895f2d013d
net: rps: support 802.1Q

For the 802.1Q packets, if the NIC doesn't support hw-accel-vlan-rx, RPS
won't inspect the internal 4 tuples to generate skb->rxhash, so this kind
of traffic can't get any benefit from RPS.

This patch adds the support for 802.1Q to RPS.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c