Netdev List
 help / color / mirror / Atom feed
* [PATCH iproute2-next 0/3] tc: add the psp action and flower psp matches
@ 2026-11-12  0:15 Todd Freed
  2026-11-12  0:15 ` [PATCH iproute2-next 1/3] uapi: add the tc psp action and flower psp keys Todd Freed
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Todd Freed @ 2026-11-12  0:15 UTC (permalink / raw)
  To: netdev, toddfreed
  Cc: David Ahern, Stephen Hemminger, Jamal Hadi Salim, Jiri Pirko,
	Daniel Zahka, Willem de Bruijn, Jakub Kicinski, linux-kselftest

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.

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

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                  |  90 ++++++++++++++++
 tc/Makefile                        |   1 +
 tc/f_flower.c                      |  71 ++++++++++++
 tc/m_psp.c                         | 166 +++++++++++++++++++++++++++++
 7 files changed, 391 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


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

end of thread, other threads:[~2026-11-12  1:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12  0:15 [PATCH iproute2-next 0/3] tc: add the psp action and flower psp matches Todd Freed
2026-11-12  0:15 ` [PATCH iproute2-next 1/3] uapi: add the tc psp action and flower psp keys Todd Freed
2026-11-12  0:15 ` [PATCH iproute2-next 2/3] tc: add the psp action Todd Freed
2026-11-12  1:05   ` Stephen Hemminger
2026-11-12  0:15 ` [PATCH iproute2-next 3/3] tc: flower: add matches psp_spi, psp_ver and psp_dev Todd Freed
2026-11-12  1:06   ` Stephen Hemminger

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