vhost: fix crash with multiqueue enabled
authorTetsuya Mukawa <mukawa@igel.co.jp>
Wed, 28 Oct 2015 03:47:40 +0000 (12:47 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 30 Oct 2015 14:46:01 +0000 (15:46 +0100)
commit07d37fbf5e91e72f961900d851611afe47702548
treeda6000a2343db5bac2bcb76bfd16fe8e0d9fe97b
parentf53577f0692556bbe5ae096cea47b891dac33172
vhost: fix crash with multiqueue enabled

The patch fixes wrong handling of virtqueue array index when
GET_VRING_BASE message comes.

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
lib/librte_vhost/vhost_user/virtio-net-user.c