]> Git Repo - linux.git/commit
Merge branch 'net-sched-transition-actions-to-pcpu-stats-and-rcu'
authorPaolo Abeni <[email protected]>
Thu, 16 Feb 2023 09:39:30 +0000 (10:39 +0100)
committerPaolo Abeni <[email protected]>
Thu, 16 Feb 2023 09:39:30 +0000 (10:39 +0100)
commite9ab2559e2c501593c58a02a956a6005a2a749fb
tree45bc5299e267357a6b3732102e4158227138b209
parent10d13421a6ae414ab91d4f2103fc90d1f4216736
parent2d2e75d2d4a2245175d77899764b56e19c5769b4
Merge branch 'net-sched-transition-actions-to-pcpu-stats-and-rcu'

Pedro Tammela says:

====================
net/sched: transition actions to pcpu stats and rcu

Following the work done for act_pedit[0], transition the remaining tc
actions to percpu stats and rcu, whenever possible.
Percpu stats make updating the action stats very cheap, while combining
it with rcu action parameters makes it possible to get rid of the per
action lock in the datapath.

For act_connmark and act_nat we run the following tests:
- tc filter add dev ens2f0 ingress matchall action connmark
- tc filter add dev ens2f0 ingress matchall action nat ingress any 10.10.10.10

Our setup consists of a 26 cores Intel CPU and a 25G NIC.
We use TRex to shoot 10mpps TCP packets and take perf measurements.
Both actions improved performance as expected since the datapath lock disappeared.

For act_pedit we move the drop counter to percpu, when available.
For act_gate we move the counters to percpu, when available.

[0] https://lore.kernel.org/all/20230131145149.3776656[email protected]/
====================

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
This page took 0.052857 seconds and 4 git commands to generate.