Thread (35 messages) 35 messages, 5 authors, 2020-07-28
STALE2177d

[RFC PATCH v2 07/21] netdevice: add SETUP_NETGPU to the netdev_bpf structure

From: Jonathan Lemon <hidden>
Date: 2020-07-27 22:44:57
Subsystem: networking drivers, networking [general], the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

From: Jonathan Lemon <redacted>

This command will be used to setup/tear down netgpu queues.

Signed-off-by: Jonathan Lemon <redacted>
---
 include/linux/netdevice.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index ac2cd3f49aba..df72c762e562 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -882,6 +882,7 @@ enum bpf_netdev_command {
 	BPF_OFFLOAD_MAP_ALLOC,
 	BPF_OFFLOAD_MAP_FREE,
 	XDP_SETUP_XSK_UMEM,
+	XDP_SETUP_NETGPU,
 };
 
 struct bpf_prog_offload_ops;
@@ -913,6 +914,11 @@ struct netdev_bpf {
 			struct xdp_umem *umem;
 			u16 queue_id;
 		} xsk;
+		/* XDP_SETUP_NETGPU */
+		struct {
+			struct netgpu_ifq *ifq;
+			u16 queue_id;
+		} netgpu;
 	};
 };
 
-- 
2.24.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help