The patch enables XDP_SOCKETS and XDP_SOCKETS_DIAG used by AF_XDP,
and its dependency on BPF_SYSCALL.

Signed-off-by: William Tu <u9012...@gmail.com>
---
 init/Kconfig    | 2 +-
 net/xdp/Kconfig | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/init/Kconfig b/init/Kconfig
index b4daad2bac23..229eceeb93d4 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1631,7 +1631,7 @@ config BPF_SYSCALL
        bool "Enable bpf() system call"
        select BPF
        select IRQ_WORK
-       default n
+       default y
        help
          Enable the bpf() system call that allows to manipulate eBPF
          programs and maps via file descriptors.
diff --git a/net/xdp/Kconfig b/net/xdp/Kconfig
index 71af2febe72a..77fd51d6a5d7 100644
--- a/net/xdp/Kconfig
+++ b/net/xdp/Kconfig
@@ -2,7 +2,7 @@
 config XDP_SOCKETS
        bool "XDP sockets"
        depends on BPF_SYSCALL
-       default n
+       default y
        help
          XDP sockets allows a channel between XDP programs and
          userspace applications.
@@ -10,7 +10,7 @@ config XDP_SOCKETS
 config XDP_SOCKETS_DIAG
        tristate "XDP sockets: monitoring interface"
        depends on XDP_SOCKETS
-       default n
+       default y
        help
          Support for PF_XDP sockets monitoring interface used by the ss tool.
          If unsure, say Y.
-- 
2.7.4

Reply via email to