net: sched: run ingress qdisc without locks
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 1 May 2015 03:14:07 +0000 (20:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 03:42:03 +0000 (23:42 -0400)
commit087c1a601ad7f851a2d31f5fa0e5e9dfc766df55
treeef9325c8d3b021583af7a0d1b13cf934379b6b31
parenta89f96c927700eeb560943847e3d00b664f341bb
net: sched: run ingress qdisc without locks

TC classifiers/actions were converted to RCU by John in the series:
http://thread.gmane.org/gmane.linux.network/329739/focus=329739
and many follow on patches.
This is the last patch from that series that finally drops
ingress spin_lock.

Single cpu ingress+u32 performance goes from 22.9 Mpps to 24.5 Mpps.

In two cpu case when both cores are receiving traffic on the same
device and go into the same ingress+u32 the performance jumps
from 4.5 + 4.5 Mpps to 23.5 + 23.5 Mpps

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/sched/sch_ingress.c