From: Jonathan Lemon <b...@fb.com>

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

Signed-off-by: Jonathan Lemon <jonathan.le...@gmail.com>
---
 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

Reply via email to