vhost: use queue id instead of constant ring index
authorChangchun Ouyang <changchun.ouyang@intel.com>
Thu, 22 Oct 2015 12:35:52 +0000 (20:35 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 26 Oct 2015 20:23:49 +0000 (21:23 +0100)
commit7c46842c9e534096816a77c97f02c10fbee87158
tree8d10bfdb752fe103972d1c8e1112dcd3242dd417
parente049ca6d10e0e458961b4d15b812ffe7f46aeb16
vhost: use queue id instead of constant ring index

Do not use VIRTIO_RXQ or VIRTIO_TXQ anymore; use the queue_id
instead, which will be set to a proper value for a specific queue
when we have multiple queue support enabled.

For now, queue_id is still set with VIRTIO_RXQ or VIRTIO_TXQ,
so it should not break anything.

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_vhost/vhost_rxtx.c