Message ID | 20221007211713.170714-3-jonathan.lemon@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | zero-copy RX for io_uring | expand |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 9f42fc871c3b..49ecfc276411 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -979,6 +979,7 @@ enum bpf_netdev_command { BPF_OFFLOAD_MAP_ALLOC, BPF_OFFLOAD_MAP_FREE, XDP_SETUP_XSK_POOL, + XDP_SETUP_ZCTAP, }; struct bpf_prog_offload_ops; @@ -1017,6 +1018,11 @@ struct netdev_bpf { struct xsk_buff_pool *pool; u16 queue_id; } xsk; + /* XDP_SETUP_ZCTAP */ + struct { + struct io_zctap_ifq *ifq; + u16 queue_id; + } zct; }; };
This command requests the networking device setup or teardown a new interface queue, backed by a region of user supplied memory. The queue will be managed by io-uring. Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> --- include/linux/netdevice.h | 6 ++++++ 1 file changed, 6 insertions(+)