kernel: xdp-sockets-diag: adjust dependency

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-08-17 21:31:54 +08:00
parent a37b79d082
commit 3077a06278
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 2 additions and 1 deletions

View File

@ -1175,6 +1175,7 @@ config KERNEL_NET_L3_MASTER_DEV
config KERNEL_XDP_SOCKETS
bool "XDP sockets support"
default y if KERNEL_DEBUG_INFO_BTF
help
XDP sockets allows a channel between XDP programs and
userspace applications.

View File

@ -1449,7 +1449,7 @@ $(eval $(call KernelPackage,inet-diag))
define KernelPackage/xdp-sockets-diag
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=PF_XDP sockets monitoring interface support for ss utility
DEPENDS:=+@KERNEL_XDP_SOCKETS
DEPENDS:=@KERNEL_XDP_SOCKETS
KCONFIG:=CONFIG_XDP_SOCKETS_DIAG
FILES:=$(LINUX_DIR)/net/xdp/xsk_diag.ko
AUTOLOAD:=$(call AutoLoad,31,xsk_diag)