Netdev List
 help / color / mirror / Atom feed
From: Alexandre Cassen <acassen@corp.free.fr>
To: Jamal Hadi Salim <jhs@mojatatu.com>, Jiri Pirko <jiri@resnulli.us>
Cc: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	Ido Schimmel <idosch@nvidia.com>, Shuah Khan <shuah@kernel.org>,
	netdev@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: [PATCH net 0/2] net/sched: act_api: keep the offload flags of shared actions
Date: Wed, 21 Oct 2026 21:32:17 +0200	[thread overview]
Message-ID: <20261021193222.1318333-1-acassen@corp.free.fr> (raw)

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


             reply	other threads:[~2026-10-21 19:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-21 19:32 Alexandre Cassen [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261021193222.1318333-1-acassen@corp.free.fr \
    --to=acassen@corp.free.fr \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    --cc=vladimir.oltean@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox