diff mbox series

[net-next] xsk: Enable AF_XDP by default.

Message ID 1571788711-4397-1-git-send-email-u9012063@gmail.com
State Rejected
Delegated to: David Miller
Headers show
Series [net-next] xsk: Enable AF_XDP by default. | expand

Commit Message

William Tu Oct. 22, 2019, 11:58 p.m. UTC
The patch enables XDP_SOCKETS and XDP_SOCKETS_DIAG used by AF_XDP,
and its dependency on BPF_SYSCALL.

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

Comments

Jesper Dangaard Brouer Oct. 23, 2019, 6:39 p.m. UTC | #1
On Tue, 22 Oct 2019 16:58:31 -0700
William Tu <u9012063@gmail.com> wrote:

> The patch enables XDP_SOCKETS and XDP_SOCKETS_DIAG used by AF_XDP,
> and its dependency on BPF_SYSCALL.
> 
> Signed-off-by: William Tu <u9012063@gmail.com>

Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
David Miller Oct. 24, 2019, 10:19 p.m. UTC | #2
From: William Tu <u9012063@gmail.com>
Date: Tue, 22 Oct 2019 16:58:31 -0700

> The patch enables XDP_SOCKETS and XDP_SOCKETS_DIAG used by AF_XDP,
> and its dependency on BPF_SYSCALL.
> 
> Signed-off-by: William Tu <u9012063@gmail.com>

I don't know about this, it's a big change.

The consumers who care will enable these things, and all of our test cases
have appropriate config snippets to make sure they are enabled too.

I'm not applying this.
diff mbox series

Patch

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.