This command will be used to setup/tear down netgpu queues.
Signed-off-by: Jonathan Lemon <[email protected]>
---
include/linux/netdevice.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 6fc613ed8eae..ea3c15ef0f29 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -880,6 +880,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;
@@ -911,6 +912,11 @@ struct netdev_bpf {
struct xdp_umem *umem;
u16 queue_id;
} xsk;
+ /* XDP_SETUP_NETGPU */
+ struct {
+ struct netgpu_ctx *ctx;
+ u16 queue_id;
+ } netgpu;
};
};
--
2.24.1