vhost-user: announce queue number in message
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Thu, 22 Oct 2015 12:35:50 +0000 (20:35 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 26 Oct 2015 20:22:32 +0000 (21:22 +0100)
commitb09b198bfb5c1d061ae59fe7a5cd07e9ba11e225
tree89e0a8a700f4701be2fe584102fb13a816bd56bc
parent381316f6a225139d22d39b5ab8d50c40607924ca
vhost-user: announce queue number in message

Add VHOST_USER_GET_QUEUE_NUM message
to tell the frontend (qemu) how many queue pairs we support.

And it is initiated to VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX.

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_user/vhost-net-user.c
lib/librte_vhost/vhost_user/vhost-net-user.h