kernel: modules: add xdp-sockets-diag support
[openwrt/staging/jow.git] / target / linux / generic / hack-5.15 / 901-debloat_sock_diag.patch
index ac502bdd16d6668b1cc898c9fc360a6f4fde5ebd..1f3802aa5b3040427672721c6eb048fb278f38f7 100644 (file)
@@ -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.