vhost: do not limit packed ring size
authorMarvin Liu <yong.liu@intel.com>
Wed, 30 Oct 2019 09:24:21 +0000 (17:24 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:05 +0000 (23:15 +0100)
commit3939255eeda47d9f70d5d54729ef94a27ae8b803
tree95f4900a85658ecae4e0873e37f9f1ffe128de7a
parentdf42dde55bd3c4bcbe7793ef51c784a567564c49
vhost: do not limit packed ring size

Virtio spec only set rule that packed ring maximum size is up to 2^15
entries. Should not limit packed ring size to power of two.

Fixes: 708e14d8b9ac ("vhost: advertize packed ring layout support")
Cc: stable@dpdk.org
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c