]> git.ipfire.org Git - thirdparty/linux.git/commit
psp: base PSP device support
authorJakub Kicinski <kuba@kernel.org>
Wed, 17 Sep 2025 00:09:29 +0000 (17:09 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 10:32:06 +0000 (12:32 +0200)
commit00c94ca2b99e6610e483f92e531b319eeaed94aa
tree45ab3e38c7e4adbef9e22972062c64e825d0ccac
parenta9266275fd7b309067fd132982035270fee6dc06
psp: base PSP device support

Add a netlink family for PSP and allow drivers to register support.

The "PSP device" is its own object. This allows us to perform more
flexible reference counting / lifetime control than if PSP information
was part of net_device. In the future we should also be able
to "delegate" PSP access to software devices, such as *vlan, veth
or netkit more easily.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250917000954.859376-3-daniel.zahka@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
16 files changed:
Documentation/netlink/specs/psp.yaml [new file with mode: 0644]
include/linux/netdevice.h
include/net/psp.h [new file with mode: 0644]
include/net/psp/functions.h [new file with mode: 0644]
include/net/psp/types.h [new file with mode: 0644]
include/uapi/linux/psp.h [new file with mode: 0644]
net/Kconfig
net/Makefile
net/psp/Kconfig [new file with mode: 0644]
net/psp/Makefile [new file with mode: 0644]
net/psp/psp-nl-gen.c [new file with mode: 0644]
net/psp/psp-nl-gen.h [new file with mode: 0644]
net/psp/psp.h [new file with mode: 0644]
net/psp/psp_main.c [new file with mode: 0644]
net/psp/psp_nl.c [new file with mode: 0644]
tools/net/ynl/Makefile.deps