]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost.h
crypto/qat: add device files
[dpdk.git] / lib / librte_vhost / vhost.h
index b10ac124b8fcd4af665dbcb4e533838f9ab19317..528e01c8f94cd0615383640c45f420d1e1bb35f3 100644 (file)
@@ -536,6 +536,7 @@ int vhost_new_device(void);
 void cleanup_device(struct virtio_net *dev, int destroy);
 void reset_device(struct virtio_net *dev);
 void vhost_destroy_device(int);
+void vhost_destroy_device_notify(struct virtio_net *dev);
 
 void cleanup_vq(struct vhost_virtqueue *vq, int destroy);
 void free_vq(struct vhost_virtqueue *vq);
@@ -592,7 +593,7 @@ static __rte_always_inline void
 vhost_vring_call(struct virtio_net *dev, struct vhost_virtqueue *vq)
 {
        /* Flush used->idx update before we read avail->flags. */
-       rte_mb();
+       rte_smp_mb();
 
        /* Don't kick guest if we don't reach index specified by guest. */
        if (dev->features & (1ULL << VIRTIO_RING_F_EVENT_IDX)) {