Skip to content

psp: correct notifications and device info around device assoc

Jakub Kicinski linux-kselftest netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6selftests: drv-net: psp: fix linter issuestools/testing/selftests/drivers/net/psp.py+2 -21 replyApplied
2/6psp: don't report the main netdevice's ifindex to associated namespacesDocumentation/netlink/specs/psp.yaml net/psp/psp_nl.c+7 -23 repliesApplied
3/6selftests: drv-net: psp: check the ifindex an associated netns seestools/testing/selftests/drivers/net/psp.py+4 -01 replyApplied
4/6psp: notify about a disassociation once it has happenednet/psp/psp.h net/psp/psp_main.c net/psp/psp_nl.c+49 -122 repliesApplied
5/6selftests: drv-net: psp: factor out creating a netkit in the test netnstools/testing/selftests/drivers/net/psp.py+33 -271 replyApplied
6/6selftests: drv-net: psp: check the PSP disassociation notificationstools/testing/selftests/drivers/net/psp.py+112 -02 repliesApplied

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchDaniel Zahka
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/6] psp: correct notifications and device info around device assoc

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(-)
Signature · 1 line
2.55.0