net/virtio: simplify queue allocation
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 5 Nov 2016 09:40:58 +0000 (17:40 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Nov 2016 14:40:00 +0000 (15:40 +0100)
commit905a246929cca0df4638dacfdd4cc87d497591e4
treef59251934094f63b9d2224f21524a62d21602002
parent73d017dd9c478076136b08a01b77a9e69174f1ae
net/virtio: simplify queue allocation

Let rxq/txq/cq be the union field of the virtqueue struct. This would
simplifies the vq allocation a bit: we don't need calculate the vq_size
any more based on the queue type.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtqueue.h