]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost.h
mem: add external API to retrieve page fd
[dpdk.git] / lib / librte_vhost / vhost.h
index 760a09c0d5bb0ecdf3877213203744f2f7465d89..25ffd7614d51f621d98c363909d56ffb32ab20bf 100644 (file)
@@ -648,6 +648,8 @@ vhost_iova_to_vva(struct virtio_net *dev, struct vhost_virtqueue *vq,
        return __vhost_iova_to_vva(dev, vq, iova, len, perm);
 }
 
+#define vhost_avail_event(vr) \
+       (*(volatile uint16_t*)&(vr)->used->ring[(vr)->size])
 #define vhost_used_event(vr) \
        (*(volatile uint16_t*)&(vr)->avail->ring[(vr)->size])