vhost-user: prepare multiple queue setup
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 18 Sep 2015 08:01:10 +0000 (16:01 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 26 Oct 2015 20:22:37 +0000 (21:22 +0100)
commite049ca6d10e0e458961b4d15b812ffe7f46aeb16
treea7a579c1cb01d9d5e4e88fd9ed761c42fc7e6b52
parentb09b198bfb5c1d061ae59fe7a5cd07e9ba11e225
vhost-user: prepare multiple queue setup

All queue pairs, including the default (the first) queue pair,
are allocated dynamically, when a vring_call message is received
first time for a specific queue pair.

This is a refactor work for enabling vhost-user multiple queue;
it should not break anything as it does no functional changes:
we don't support mq set, so there is only one mq at max.

This patch is based on Changchun's patch.

Signed-off-by: Ouyang Changchun <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/rte_virtio_net.h
lib/librte_vhost/vhost_user/virtio-net-user.c
lib/librte_vhost/virtio-net.c