From: Yuanhan Liu <yuanhan....@linux.intel.com>

Signed-off-by: Yuanhan Liu <yuanhan....@linux.intel.com>
---
 lib/librte_vhost/vhost.h      | 1 +
 lib/librte_vhost/vhost_user.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h
index 208b2eb..f3b7ad5 100644
--- a/lib/librte_vhost/vhost.h
+++ b/lib/librte_vhost/vhost.h
@@ -86,6 +86,7 @@ struct zcopy_mbuf {
  */
 struct vhost_virtqueue {
        struct vring_desc       *desc;
+       struct vring_desc_1_1   *desc_1_1;
        struct vring_avail      *avail;
        struct vring_used       *used;
        uint32_t                size;
diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c
index 5c8058b..3b05355 100644
--- a/lib/librte_vhost/vhost_user.c
+++ b/lib/librte_vhost/vhost_user.c
@@ -349,6 +349,7 @@
                        dev->vid);
                return -1;
        }
+       vq->desc_1_1 = (struct vring_desc_1_1 *)vq->desc_1_1;
 
        dev = numa_realloc(dev, addr->index);
        vq = dev->virtqueue[addr->index];
-- 
1.8.3.1

Reply via email to