net/virtio: refactor virtqueue structure
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 19 Mar 2019 06:43:07 +0000 (14:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Mar 2019 17:15:42 +0000 (18:15 +0100)
commitdfd33aa4e586e9fca964faaebbfa74ebbb342613
treee7c1e3a6506b7683b8d84284ed4655cabbd786ef
parent8e148e492022f9e0a8bf1c48e59a199c86ccc65b
net/virtio: refactor virtqueue structure

Put split ring and packed ring specific fields into separate
sub-structures, and also union them as they won't be available
at the same time.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_rxtx_simple.h
drivers/net/virtio/virtio_rxtx_simple_neon.c
drivers/net/virtio/virtio_rxtx_simple_sse.c
drivers/net/virtio/virtqueue.c
drivers/net/virtio/virtqueue.h