This series lets actions drop their per CPU stats and lets skip_sw
tunnel_key actions drop their dst cache:
- skbedit, police, mpls and sample honor TCA_ACT_FLAGS_NO_PERCPU_STATS.
- bpf, ife and skbmod honor it too. All actions now do.
- Action init sees the offload flags of the filter. A skip_sw filter
alone now satisfies the skbedit queue_mapping check.
- tunnel_key skips the dst cache for skip_sw actions.
v3:
- Add patch 2 for bpf, ife and skbmod (Jamal).
- Add Jamal's Reviewed-by to patch 3.
- Correct the memory saving in patch 1 to 8 KB. The 6.5 KB in v2 ignored
the padding that the alignment of the stats adds.
- Reword the title. Patch 2 does not concern hardware only actions.
v2: https://lore.kernel.org/netdev/20261104214607.556269-1-acassen@corp.free.fr/ (local)
- Add the act_api patch so that a skip_sw filter is enough for the
tunnel_key patch (Sashiko [1], Jakub).
- Give the memory saving in the tunnel_key patch (Sashiko [1], Jakub)
and in patch 1.
- Drop the race note from patch 1. Commit 1800f27a5ef8 ("net/sched:
act_api: take tcfa_lock for hardware stats updates") fixes this race,
which Sashiko [1] also flags.
- Add Jamal's Reviewed-by to patch 1 and the tunnel_key patch.
v1: https://lore.kernel.org/netdev/20261009051930.3619697-1-acassen@corp.free.fr/ (local)
[1] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261009051930.3619697-1-acassen%40corp.free.fr
Alexandre Cassen (4):
net/sched: honor TCA_ACT_FLAGS_NO_PERCPU_STATS in more actions
net/sched: honor TCA_ACT_FLAGS_NO_PERCPU_STATS in bpf, ife and skbmod
net/sched: act_api: pass the filter offload flags to action init
net/sched: act_tunnel_key: skip dst cache for skip_sw actions
net/sched/act_api.c | 17 +++++++----------
net/sched/act_bpf.c | 8 ++++----
net/sched/act_ife.c | 24 ++++++++++++------------
net/sched/act_mpls.c | 8 ++++----
net/sched/act_police.c | 10 +++++-----
net/sched/act_sample.c | 6 +++---
net/sched/act_skbedit.c | 9 +++++----
net/sched/act_skbmod.c | 8 ++++----
net/sched/act_tunnel_key.c | 10 +++++++---
9 files changed, 51 insertions(+), 49 deletions(-)
--
2.43.0