net/virtio-user: fix used ring in cvq handling
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 22 Jan 2019 17:01:43 +0000 (01:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 24 Jan 2019 09:08:31 +0000 (10:08 +0100)
commit0403e37a468df59707ed938cca4a507276a0befb
tree9f19b8d2f1f52e986c30d34ba5516adde3e6ce5f
parent18f42d78864836d25bff30714f3bc77eb2c0b67e
net/virtio-user: fix used ring in cvq handling

When updating used ring, the id in used element should be the
index of the first desc in the desc chain.

Fixes: f9b9d1a55775 ("net/virtio-user: add multiple queues in device emulation")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/virtio_user_dev.c