]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_ethdev.c
net/mlx5: move Linux-specific functions
[dpdk.git] / drivers / net / virtio / virtio_ethdev.c
index e86d4e08fdbb1e78aeefc4800e391a57b482c91c..312871cb48e9a1daf5f63dd74c018c45feb76bf3 100644 (file)
@@ -290,13 +290,10 @@ virtio_send_command_split(struct virtnet_ctl *cvq,
 
        virtqueue_notify(vq);
 
-       rte_rmb();
-       while (VIRTQUEUE_NUSED(vq) == 0) {
-               rte_rmb();
+       while (virtqueue_nused(vq) == 0)
                usleep(100);
-       }
 
-       while (VIRTQUEUE_NUSED(vq)) {
+       while (virtqueue_nused(vq)) {
                uint32_t idx, desc_idx, used_idx;
                struct vring_used_elem *uep;