From: Jin Yu Date: Wed, 9 Oct 2019 20:48:30 +0000 (+0800) Subject: vhost: add packed ring into vring struct X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=62a70db553f9e37df08b301092acea144979f424;p=dpdk.git vhost: add packed ring into vring struct This patch add the packed ring in the rte_vhost_vring. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu Reviewed-by: Maxime Coquelin --- diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h index eaee70c443..c2ef65c740 100644 --- a/lib/librte_vhost/rte_vhost.h +++ b/lib/librte_vhost/rte_vhost.h @@ -104,9 +104,18 @@ struct rte_vhost_memory { }; struct rte_vhost_vring { - struct vring_desc *desc; - struct vring_avail *avail; - struct vring_used *used; + union { + struct vring_desc *desc; + struct vring_packed_desc *desc_packed; + }; + union { + struct vring_avail *avail; + struct vring_packed_desc_event *driver_event; + }; + union { + struct vring_used *used; + struct vring_packed_desc_event *device_event; + }; uint64_t log_guest_addr; /** Deprecated, use rte_vhost_vring_call() instead. */