Netdev List
 help / color / mirror / Atom feed
From: Todd Freed <toddfreed@meta.com>
To: <netdev@vger.kernel.org>, <toddfreed@meta.com>
Cc: David Ahern <dsahern@kernel.org>,
	Stephen Hemminger <stephen@networkplumber.org>,
	Jamal Hadi Salim <jhs@mojatatu.com>,
	Jiri Pirko <jiri@resnulli.us>,
	Daniel Zahka <daniel.zahka@gmail.com>,
	Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
	Jakub Kicinski <kuba@kernel.org>,
	<linux-kselftest@vger.kernel.org>
Subject: [PATCH iproute2-next v2 0/3] tc: add the psp action and flower psp matches
Date: Thu, 12 Nov 2026 11:24:23 -0800	[thread overview]
Message-ID: <20261112192426.397604-1-toddfreed@meta.com> (raw)

This adds tc support for socket-less PSP associations, from the net-next
series:

  https://lore.kernel.org/netdev/20261111005533.6436-1-toddfreed@meta.com

 - The psp action: attach a PSP Tx association to a packet, for the PSP
   device to encrypt on transmit (encap), or remove the PSP Rx state of a
   packet the device decrypted (decap).
 - Flower matches on that Rx state: psp_spi, psp_ver and psp_dev.

The selftests in the kernel series, drivers/net psp.py and tc-testing
psp.json, use them.

The kernel series isn't merged yet. Patch 1 copies its uapi headers, so
that this builds and can be tested with it; it can be replaced by the
regular header sync once the kernel series is merged. Please apply this
series only after the kernel series is merged into net-next. The tc uapi
is unchanged in the kernel series' v2.

Testing: with the kernel series on netdevsim, drivers/net psp.py (57
tests) and tc-testing psp.json (17 tests) pass with this tc.

Changes in v2 (Stephen):
 - psp action: match keywords with strcmp() instead of matches().
 - psp action: reject "decap assoc", and a repeated "assoc".
 - psp action: print psp_action as a string in JSON for any value, and
   only when the kernel reports it.
 - psp action: list "jump" in CONTROL, in the usage and the man page.
 - psp action: check "encap" and "assoc" also with "index", and list the
   bare "index INDEX" form, which references an existing action.
 - flower: parse psp_ver and psp_dev as decimal.

v1: https://lore.kernel.org/netdev/20261112001512.3598626-1-toddfreed@meta.com

Todd Freed (3):
  uapi: add the tc psp action and flower psp keys
  tc: add the psp action
  tc: flower: add matches psp_spi, psp_ver and psp_dev

 include/uapi/linux/pkt_cls.h       |   6 +
 include/uapi/linux/tc_act/tc_psp.h |  28 +++++
 man/man8/tc-flower.8               |  29 +++++
 man/man8/tc-psp.8                  |  98 ++++++++++++++++
 tc/Makefile                        |   1 +
 tc/f_flower.c                      |  71 ++++++++++++
 tc/m_psp.c                         | 173 +++++++++++++++++++++++++++++
 7 files changed, 406 insertions(+)
 create mode 100644 include/uapi/linux/tc_act/tc_psp.h
 create mode 100644 man/man8/tc-psp.8
 create mode 100644 tc/m_psp.c


base-commit: 204a721033556114c81c47d00375f2d52e98e463
--
2.53.0-Meta

             reply	other threads:[~2026-11-12 19:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-12 19:24 Todd Freed [this message]
2026-11-12 19:24 ` [PATCH iproute2-next v2 1/3] uapi: add the tc psp action and flower psp keys Todd Freed
2026-11-12 19:24 ` [PATCH iproute2-next v2 2/3] tc: add the psp action Todd Freed
2026-11-12 19:24 ` [PATCH iproute2-next v2 3/3] tc: flower: add matches psp_spi, psp_ver and psp_dev Todd Freed

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=20261112192426.397604-1-toddfreed@meta.com \
    --to=toddfreed@meta.com \
    --cc=daniel.zahka@gmail.com \
    --cc=dsahern@kernel.org \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.org \
    --cc=willemdebruijn.kernel@gmail.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