vhost-user: add VHOST_USER_GET_QUEUE_NUM message
commite2051e9e004649b53af4db34f78c689fb44e075b
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 23 Sep 2015 04:19:58 +0000 (23 12:19 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 24 Sep 2015 13:27:52 +0000 (24 16:27 +0300)
tree5621451188099ce6e8d2df7dcc81f0d2401fd166
parentd1f8b30ec8dde0318fd1b98d24a64926feae9625
vhost-user: add VHOST_USER_GET_QUEUE_NUM message

This is for querying how many queues the backend supports if it has mq
support(when VHOST_USER_PROTOCOL_F_MQ flag is set from the quried
protocol features).

vhost_net_get_max_queues() is the interface to export that value, and
to tell if the backend supports # of queues user requested, which is
done in the following patch.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Marcel Apfelbaum <marcel@redhat.com>
docs/specs/vhost-user.txt
hw/net/vhost_net.c
hw/virtio/vhost-user.c
include/hw/virtio/vhost.h
include/net/vhost_net.h