netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] psp: correct notifications and device info around device assoc
@ 2026-09-12 20:04 Jakub Kicinski
  2026-09-12 20:04 ` [PATCH net-next 1/6] selftests: drv-net: psp: fix linter issues Jakub Kicinski
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Jakub Kicinski @ 2026-09-12 20:04 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, pabeni, andrew+netdev, horms, daniel.zahka,
	willemdebruijn.kernel, donald.hunter, shuah, linux-kselftest,
	Jakub Kicinski

We recently added the ability to associate a HW PSP device with
a software device like netkit or veth to be able to make PSP
usable from containers. This stretches the visibility of a PSP
device to multiple netns's.

Correct two minor issues:

[Patch 2] skip reporting the main ifindex in remote netns. I'm not sure
if we had some justification for this but looking back it's pretty
confusing. The ifindex is meaningless in another netns, better
not to have it.

[Patch 4] correct the change notification when net_device is removed.
The "leaving" notification had the removed netdev still listed among
the associated devices. This made the code simpler but really it makes
the notification impossible to interpret. Add the extra code to handle
this right, exclude the removed device, and send a del notification
when last device in a netns is chopped off.

Both of these were discovered by an LLM scan of the YAML spec,
the spec itself appears to not have major bugs.

Jakub Kicinski (6):
  selftests: drv-net: psp: fix linter issues
  psp: don't report the main netdevice's ifindex to associated
    namespaces
  selftests: drv-net: psp: check the ifindex an associated netns sees
  psp: notify about a disassociation once it has happened
  selftests: drv-net: psp: factor out creating a netkit in the test
    netns
  selftests: drv-net: psp: check the PSP disassociation notifications

 Documentation/netlink/specs/psp.yaml       |   2 +
 net/psp/psp.h                              |   1 +
 net/psp/psp_main.c                         |  16 +-
 net/psp/psp_nl.c                           |  51 ++++--
 tools/testing/selftests/drivers/net/psp.py | 180 +++++++++++++++++----
 5 files changed, 207 insertions(+), 43 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-09-15  6:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-12 20:04 [PATCH net-next 0/6] psp: correct notifications and device info around device assoc Jakub Kicinski
2026-09-12 20:04 ` [PATCH net-next 1/6] selftests: drv-net: psp: fix linter issues Jakub Kicinski
2026-09-14 11:09   ` Daniel Zahka
2026-09-12 20:04 ` [PATCH net-next 2/6] psp: don't report the main netdevice's ifindex to associated namespaces Jakub Kicinski
2026-09-14 12:02   ` Daniel Zahka
2026-09-14 23:30     ` Jakub Kicinski
2026-09-15  6:04   ` netdev-bot+sashiko
2026-09-12 20:04 ` [PATCH net-next 3/6] selftests: drv-net: psp: check the ifindex an associated netns sees Jakub Kicinski
2026-09-14 12:11   ` Daniel Zahka
2026-09-12 20:04 ` [PATCH net-next 4/6] psp: notify about a disassociation once it has happened Jakub Kicinski
2026-09-14 12:42   ` Daniel Zahka
2026-09-15  6:04   ` netdev-bot+sashiko
2026-09-12 20:04 ` [PATCH net-next 5/6] selftests: drv-net: psp: factor out creating a netkit in the test netns Jakub Kicinski
2026-09-14 12:59   ` Daniel Zahka
2026-09-12 20:04 ` [PATCH net-next 6/6] selftests: drv-net: psp: check the PSP disassociation notifications Jakub Kicinski
2026-09-14 13:05   ` Daniel Zahka
2026-09-15  6:04   ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).