rps: keep the old behavior on SMP without rps
authorChangli Gao <xiaosuo@gmail.com>
Tue, 30 Mar 2010 20:16:22 +0000 (20:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2010 01:41:40 +0000 (18:41 -0700)
commit152102c7f2bf191690f1069bae292ea3925adf14
tree093ce1204a81acd76623a567b821661c504bc575
parent630b943c182d1aed69f244405131902fbcba7ec6
rps: keep the old behavior on SMP without rps

keep the old behavior on SMP without rps

RPS introduces a lock operation to per cpu variable input_pkt_queue on
SMP whenever rps is enabled or not. On SMP without RPS, this lock isn't
needed at all.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
----
net/core/dev.c | 42 ++++++++++++++++++++++++++++--------------
1 file changed, 28 insertions(+), 14 deletions(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c