kernel: modules: add xdp-sockets-diag support
[openwrt/staging/nbd.git] / target / linux / generic / hack-6.1 / 901-debloat_sock_diag.patch
index 582a48cb182c777032677b29338b87be744380f4..88e2edd289f55d8352cf73966aa9db628c992d2a 100644 (file)
@@ -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.