From: Maxime Coquelin Date: Tue, 26 Oct 2021 16:28:51 +0000 (+0200) Subject: vhost: hide in-flight async structure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5f89c5e1e9f4e6286f3a9b4635ea768177fabd82;p=dpdk.git vhost: hide in-flight async structure This patch moves async_inflight_info struct to internal header since it should not be part of the API. Signed-off-by: Maxime Coquelin Reviewed-by: Chenbo Xia Reviewed-by: Jiayu Hu --- diff --git a/lib/vhost/rte_vhost_async.h b/lib/vhost/rte_vhost_async.h index ad71555a7f..789b80f5a0 100644 --- a/lib/vhost/rte_vhost_async.h +++ b/lib/vhost/rte_vhost_async.h @@ -83,15 +83,6 @@ struct rte_vhost_async_channel_ops { uint16_t max_packets); }; -/** - * inflight async packet information - */ -struct async_inflight_info { - struct rte_mbuf *mbuf; - uint16_t descs; /* num of descs inflight */ - uint16_t nr_buffers; /* num of buffers inflight for packed ring */ -}; - /** * async channel features */ diff --git a/lib/vhost/vhost.h b/lib/vhost/vhost.h index 3a84085c9d..fa92a0d33d 100644 --- a/lib/vhost/vhost.h +++ b/lib/vhost/vhost.h @@ -119,6 +119,15 @@ struct vring_used_elem_packed { uint32_t count; }; +/** + * inflight async packet information + */ +struct async_inflight_info { + struct rte_mbuf *mbuf; + uint16_t descs; /* num of descs inflight */ + uint16_t nr_buffers; /* num of buffers inflight for packed ring */ +}; + struct vhost_async { /* operation callbacks for DMA */ struct rte_vhost_async_channel_ops ops;