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

From: Jonathan Lemon <[email-masked]>
Date: Mon, 27 Jul 2020 15:44:30 -0700

From: Jonathan Lemon <[email-masked]>

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

Signed-off-by: Jonathan Lemon <[email-masked]>
---
 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