aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-09-16 15:30:23 -0700
committerDavid S. Miller <davem@davemloft.net>2018-09-16 15:30:23 -0700
commit50676de486791afa7ce6f90e31d9951f3d4b04d5 (patch)
tree65206253194882b4ccb9a7b83aff2ebc4b1e883c /drivers
parentcxgb4: update supported DCB version (diff)
parentnet/sched: act_police: don't use spinlock in the data path (diff)
downloadlinux-dev-50676de486791afa7ce6f90e31d9951f3d4b04d5.tar.xz
linux-dev-50676de486791afa7ce6f90e31d9951f3d4b04d5.zip
Merge branch 'act_police-lockless-data-path'
Davide Caratti says: ==================== net/sched: act_police: lockless data path the data path of 'police' action can be faster if we avoid using spinlocks: - patch 1 converts act_police to use per-cpu counters - patch 2 lets act_police use RCU to access its configuration data. test procedure (using pktgen from https://github.com/netoptimizer): # ip link add name eth1 type dummy # ip link set dev eth1 up # tc qdisc add dev eth1 clsact # tc filter add dev eth1 egress matchall action police \ > rate 2gbit burst 100k conform-exceed pass/pass index 100 # for c in 1 2 4; do > ./pktgen_bench_xmit_mode_queue_xmit.sh -v -s 64 -t $c -n 5000000 -i eth1 > done test results (avg. pps/thread): $c | before patch | after patch | improvement ----+--------------+--------------+------------- 1 | 3518448 | 3591240 | irrelevant 2 | 3070065 | 3383393 | 10% 4 | 1540969 | 3238385 | 110% ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions