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)
commitd3ad82430e9bda65efff84622255099e14447275
treee4f2e669bcf01e9dc8d21507be9b133f2fb3228a
parentb2036a252381949d3b743a3de069324ae3028a57
net/sched: transition act_pedit to rcu and percpu stats

[ Upstream commit 52cf89f78c01bf39973f3e70d366921d70faff7a ]

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: e9e42292ea76 ("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