]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: sched: run ingress qdisc without locks
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 1 May 2015 03:14:07 +0000 (20:14 -0700)
committerBrian Maly <brian.maly@oracle.com>
Sat, 11 May 2019 04:00:16 +0000 (00:00 -0400)
commitc966a904db1479691277c7a57e0816f0b4fef2ad
tree78c52e46e230d932698ba17ce59b75452d12064c
parent1cbae0a3c71346a3b14db64b794a9c86fcda414e
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>
(cherry picked from commit 087c1a601ad7f851a2d31f5fa0e5e9dfc766df55)
Orabug: 29395374
Signed-off-by: Calum Mackay <calum.mackay@oracle.com>
Reviewed-by: Laurence Rochfort <laurence.rochfort@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/core/dev.c
net/sched/sch_ingress.c