]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost.c
examples/vhost_blk: replace SMP barrier with thread fence
[dpdk.git] / lib / librte_vhost / vhost.c
index 8a151a9c1d0dc9cdb7cb2387cca4bc42a8c174a3..b83cf639eb8bace1a6bd7afb6e4efdf4a4196b1a 100644 (file)
@@ -605,7 +605,7 @@ alloc_vring_queue(struct virtio_net *dev, uint32_t vring_idx)
                }
 
                dev->virtqueue[i] = vq;
-               init_vring_queue(dev, vring_idx);
+               init_vring_queue(dev, i);
                rte_spinlock_init(&vq->access_lock);
                vq->avail_wrap_counter = 1;
                vq->used_wrap_counter = 1;