New upstream version 18.11.1
[deb_dpdk.git] / drivers / net / virtio / virtio_user / virtio_user_dev.c
index 20816c9..9c8bcd2 100644 (file)
@@ -624,7 +624,7 @@ virtio_user_handle_cq(struct virtio_user_dev *dev, uint16_t queue_idx)
 
                /* Update used ring */
                uep = &vring->used->ring[avail_idx];
-               uep->id = avail_idx;
+               uep->id = desc_idx;
                uep->len = n_descs;
 
                vring->used->idx++;