[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200727224444.2987641-8-jonathan.lemon@gmail.com>
Date: Mon, 27 Jul 2020 15:44:30 -0700
From: Jonathan Lemon <jonathan.lemon@...il.com>
To: <netdev@...r.kernel.org>
CC: <kernel-team@...com>
Subject: [RFC PATCH v2 07/21] netdevice: add SETUP_NETGPU to the netdev_bpf structure
From: Jonathan Lemon <bsd@...com>
This command will be used to setup/tear down netgpu queues.
Signed-off-by: Jonathan Lemon <jonathan.lemon@...il.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
Powered by blists - more mailing lists