net/virtio: do not limit packed ring size
authorMarvin Liu <yong.liu@intel.com>
Wed, 30 Oct 2019 09:24:20 +0000 (17:24 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:05 +0000 (23:15 +0100)
commitdf42dde55bd3c4bcbe7793ef51c784a567564c49
tree119c5f28ee21fb19f4aa8631d384e732ae60161b
parent56345ccb4443254b067d1864c3fd8f54407e0743
net/virtio: 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: aea29aa5d37b ("net/virtio: enable packed virtqueues by default")
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>
drivers/net/virtio/virtio_ethdev.c