vhost: hide in-flight async structure
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 26 Oct 2021 16:28:51 +0000 (18:28 +0200)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:30 +0000 (12:32 +0200)
This patch moves async_inflight_info struct to internal
header since it should not be part of the API.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
lib/vhost/rte_vhost_async.h
lib/vhost/vhost.h

index ad71555..789b80f 100644 (file)
@@ -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
  */
index 3a84085..fa92a0d 100644 (file)
@@ -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;