X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_vhost%2Fvhost.h;h=22564f1c345fd139fa74539172e9776b9cf44caa;hb=83fef46a22b2c6a321b7fd92c1acd5f6e48ce489;hp=53dbf33cb014e10694028df70e325cf8328129af;hpb=9ba1e744ab6516c4ba593e60b56af16e443d8dbc;p=dpdk.git diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 53dbf33cb0..22564f1c34 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -85,7 +85,7 @@ struct vhost_virtqueue { uint32_t size; uint16_t last_avail_idx; - volatile uint16_t last_used_idx; + uint16_t last_used_idx; #define VIRTIO_INVALID_EVENTFD (-1) #define VIRTIO_UNINITIALIZED_EVENTFD (-2) @@ -105,6 +105,9 @@ struct vhost_virtqueue { uint16_t last_zmbuf_idx; struct zcopy_mbuf *zmbufs; struct zcopy_mbuf_list zmbuf_list; + + struct vring_used_elem *shadow_used_ring; + uint16_t shadow_used_idx; } __rte_cache_aligned; /* Old kernels have no such macro defined */ @@ -281,7 +284,9 @@ void vhost_set_ifname(int, const char *if_name, unsigned int if_len); void vhost_enable_dequeue_zero_copy(int vid); /* - * Backend-specific cleanup. Defined by vhost-cuse and vhost-user. + * Backend-specific cleanup. + * + * TODO: fix it; we have one backend now */ void vhost_backend_cleanup(struct virtio_net *dev);