]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: transition act_pedit to rcu and percpu stats
authorPedro Tammela <pctammela@mojatatu.com>
Tue, 31 Jan 2023 19:05:11 +0000 (16:05 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:28 +0000 (13:55 +0100)
commitd3fe26958c8365bd58e3e021d20fe9cc37c20b15
treee4f2e669bcf01e9dc8d21507be9b133f2fb3228a
parentadd0ebd4c777289ffbbc4c9866ccdfe957d4846b
net/sched: transition act_pedit to rcu and percpu stats

[ Upstream commit 2dd76d1716aba71d7692e19d39595a45b70ccf3b ]

The software pedit action didn't get the same love as some of the
other actions and it's still using spinlocks and shared stats in the
datapath.
Transition the action to rcu and percpu stats as this improves the
action's performance dramatically on multiple cpu deployments.

Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Stable-dep-of: 66b12dc272c2 ("net/sched: act_pedit: fix action bind logic")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/tc_act/tc_pedit.h
net/sched/act_pedit.c