All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] xsk: Enable AF_XDP by default.
@ 2019-10-22 23:58 William Tu
  2019-10-23 18:39 ` Jesper Dangaard Brouer
  2019-10-24 22:19 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: William Tu @ 2019-10-22 23:58 UTC (permalink / raw)
  To: netdev; +Cc: bjorn.topel, daniel, ast, magnus.karlsson, brouer

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(-)

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] xsk: Enable AF_XDP by default.
  2019-10-22 23:58 [PATCH net-next] xsk: Enable AF_XDP by default William Tu
@ 2019-10-23 18:39 ` Jesper Dangaard Brouer
  2019-10-24 22:19 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Jesper Dangaard Brouer @ 2019-10-23 18:39 UTC (permalink / raw)
  To: William Tu; +Cc: netdev, bjorn.topel, daniel, ast, magnus.karlsson, brouer

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>

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] xsk: Enable AF_XDP by default.
  2019-10-22 23:58 [PATCH net-next] xsk: Enable AF_XDP by default William Tu
  2019-10-23 18:39 ` Jesper Dangaard Brouer
@ 2019-10-24 22:19 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2019-10-24 22:19 UTC (permalink / raw)
  To: u9012063; +Cc: netdev, bjorn.topel, daniel, ast, magnus.karlsson, brouer

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-24 22:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 23:58 [PATCH net-next] xsk: Enable AF_XDP by default William Tu
2019-10-23 18:39 ` Jesper Dangaard Brouer
2019-10-24 22:19 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.