X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_vhost%2Fvhost.h;h=528e01c8f94cd0615383640c45f420d1e1bb35f3;hb=0a01574db43cb8ed62aa84484a7d3ddca1e74fa4;hp=588b7cf9a78ece5ae9436bd8df69c93a58e7c7dc;hpb=2396806765e4b797dd30bc265126c2bbc1a879cc;p=dpdk.git diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 588b7cf9a7..528e01c8f9 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -593,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)) {