mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-12-26 12:21:01 +01:00
Provide a PSP implementation for netdevsim. Use psp_dev_encapsulate() and psp_dev_rcv() to do actual encapsulation and decapsulation on skbs, but perform no encryption or decryption. In order to make encryption with a bad key result in a drop on the peer's rx side, we stash our psd's generation number in the first byte of each key before handing to the peer. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Co-developed-by: Daniel Zahka <daniel.zahka@gmail.com> Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com> Link: https://patch.msgid.link/20250927225420.1443468-2-kuba@kernel.org Reviewed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
28 lines
478 B
Makefile
28 lines
478 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_NETDEVSIM) += netdevsim.o
|
|
|
|
netdevsim-objs := \
|
|
netdev.o dev.o ethtool.o fib.o bus.o health.o hwstats.o udp_tunnels.o
|
|
|
|
ifeq ($(CONFIG_BPF_SYSCALL),y)
|
|
netdevsim-objs += \
|
|
bpf.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_XFRM_OFFLOAD),)
|
|
netdevsim-objs += ipsec.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_PSAMPLE),)
|
|
netdevsim-objs += psample.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_INET_PSP),)
|
|
netdevsim-objs += psp.o
|
|
endif
|
|
|
|
ifneq ($(CONFIG_MACSEC),)
|
|
netdevsim-objs += macsec.o
|
|
endif
|