vhost: fix max queues
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 1 Mar 2017 10:41:59 +0000 (18:41 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 1 Apr 2017 06:58:54 +0000 (08:58 +0200)
commitde8e1fdcecdca1254dbd6a63fd6e0e65fe3e3b05
tree01780d29ae79052579ab785c3d5f3e54ba9b2529
parent8d286dbeb8d70551ab520569cf8a0ecdec319826
vhost: fix max queues

0x8000 is the max virito-net queue pairs the virtio 1.0 spec claims to
support. While for vhost-user, it's a different story: the max vring
index could be passed by the vhost-user spec is 0xff, masked by the
VHOST_USER_VRING_IDX_MASK.

That said, the max queue pairs could vhost-user could supported is 0x80.
If user are asking more, I think the vhost-user need be extended.

Fixes: b09b198bfb5c ("vhost-user: announce queue number in message")
Cc: stable@dpdk.org
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/vhost.h