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)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 2 Feb 2023 12:19:02 +0000 (13:19 +0100)
commit52cf89f78c01bf39973f3e70d366921d70faff7a
treeb87806af31398da1c2e48f9c0dcab23ef3de9074
parenta8248fc4ad9b815c9345deb73873cc72a543d148
net/sched: transition act_pedit to rcu and percpu stats

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>
include/net/tc_act/tc_pedit.h
net/sched/act_pedit.c