From 3077a0627827d09fa3153dcf31f0b41b5519e70c Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Thu, 17 Aug 2023 21:31:54 +0800 Subject: [PATCH] kernel: xdp-sockets-diag: adjust dependency Signed-off-by: Tianling Shen --- config/Config-kernel.in | 1 + package/kernel/linux/modules/netsupport.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/Config-kernel.in b/config/Config-kernel.in index aa4bd2d259..f85cd56b67 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -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. diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index f6d83e5774..3e7440f949 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -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)