Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] net/sched: act_api: keep the offload flags of shared actions
@ 2026-10-21 19:32 Alexandre Cassen
  2026-10-21 19:32 ` [PATCH net 1/2] net/sched: act_api: inherit filter offload flags only on new actions Alexandre Cassen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexandre Cassen @ 2026-10-21 19:32 UTC (permalink / raw)
  To: Jamal Hadi Salim, Jiri Pirko
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman, Vladimir Oltean, Ido Schimmel, Shuah Khan, netdev,
	linux-kselftest

When a filter reuses an action that another filter created, the action
also gets the skip_sw and skip_hw flags of the new filter. These flags
apply to every filter using the action. A software filter thus stops
running its action once a skip_sw filter reuses it.

Patch 1 lets only new actions inherit the flags of their filter. Patch 2
adds tc-testing coverage on a dummy device.

Tested on netdevsim with the reproducer of patch 1. The tc-testing
action, matchall and flower tests show no new failure.

Alexandre Cassen (2):
  net/sched: act_api: inherit filter offload flags only on new actions
  selftests: tc-testing: test offload flags of reused matchall actions

 net/sched/act_api.c                           |  3 +
 .../tc-testing/tc-tests/filters/matchall.json | 71 +++++++++++++++++++
 2 files changed, 74 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-26 23:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21 19:32 [PATCH net 0/2] net/sched: act_api: keep the offload flags of shared actions Alexandre Cassen
2026-10-21 19:32 ` [PATCH net 1/2] net/sched: act_api: inherit filter offload flags only on new actions Alexandre Cassen
2026-10-26 16:53   ` Simon Horman
2026-10-21 19:32 ` [PATCH net 2/2] selftests: tc-testing: test offload flags of reused matchall actions Alexandre Cassen
2026-10-26 16:53   ` Simon Horman
2026-10-26 23:30 ` [PATCH net 0/2] net/sched: act_api: keep the offload flags of shared actions patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox