mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-10 16:49:35 +00:00
kernel: modules: add xdp-sockets-diag support
Support for PF_XDP sockets monitoring interface used by the ss tool. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
32ed976446
commit
06e64f9b36
@ -1107,6 +1107,12 @@ config KERNEL_NET_L3_MASTER_DEV
|
||||
This module provides glue between core networking code and device
|
||||
drivers to support L3 master devices like VRF.
|
||||
|
||||
config KERNEL_XDP_SOCKETS
|
||||
bool "XDP sockets support"
|
||||
help
|
||||
XDP sockets allows a channel between XDP programs and
|
||||
userspace applications.
|
||||
|
||||
config KERNEL_WIRELESS_EXT
|
||||
def_bool n
|
||||
|
||||
|
@ -1434,6 +1434,22 @@ endef
|
||||
$(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
|
||||
KCONFIG:=CONFIG_XDP_SOCKETS_DIAG
|
||||
FILES:=$(LINUX_DIR)/net/xdp/xsk_diag.ko
|
||||
AUTOLOAD:=$(call AutoLoad,31,xsk_diag)
|
||||
endef
|
||||
|
||||
define KernelPackage/xdp-sockets-diag/description
|
||||
Support for PF_XDP sockets monitoring interface used by the ss tool
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,xdp-sockets-diag))
|
||||
|
||||
|
||||
define KernelPackage/wireguard
|
||||
SUBMENU:=$(NETWORK_SUPPORT_MENU)
|
||||
TITLE:=WireGuard secure network tunnel
|
||||
|
@ -160,3 +160,13 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
default n
|
||||
help
|
||||
Support for UNIX socket monitoring interface used by the ss tool.
|
||||
--- a/net/xdp/Kconfig
|
||||
+++ b/net/xdp/Kconfig
|
||||
@@ -10,6 +10,7 @@ config XDP_SOCKETS
|
||||
config XDP_SOCKETS_DIAG
|
||||
tristate "XDP sockets: monitoring interface"
|
||||
depends on XDP_SOCKETS
|
||||
+ select SOCK_DIAG
|
||||
default n
|
||||
help
|
||||
Support for PF_XDP sockets monitoring interface used by the ss tool.
|
||||
|
@ -162,3 +162,13 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||
default n
|
||||
help
|
||||
Support for UNIX socket monitoring interface used by the ss tool.
|
||||
--- a/net/xdp/Kconfig
|
||||
+++ b/net/xdp/Kconfig
|
||||
@@ -10,6 +10,7 @@ config XDP_SOCKETS
|
||||
config XDP_SOCKETS_DIAG
|
||||
tristate "XDP sockets: monitoring interface"
|
||||
depends on XDP_SOCKETS
|
||||
+ select SOCK_DIAG
|
||||
default n
|
||||
help
|
||||
Support for PF_XDP sockets monitoring interface used by the ss tool.
|
||||
|
Loading…
Reference in New Issue
Block a user