On 3/19/19 7:43 AM, Tiwei Bie wrote:
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 <[email protected]> --- drivers/net/virtio/virtio_ethdev.c | 71 +++++++++--------- drivers/net/virtio/virtio_rxtx.c | 66 ++++++++--------- drivers/net/virtio/virtio_rxtx_simple.h | 2 +- drivers/net/virtio/virtio_rxtx_simple_neon.c | 2 +- drivers/net/virtio/virtio_rxtx_simple_sse.c | 2 +- drivers/net/virtio/virtqueue.c | 6 +- drivers/net/virtio/virtqueue.h | 77 +++++++++++--------- 7 files changed, 117 insertions(+), 109 deletions(-)
Reviewed-by: Maxime Coquelin <[email protected]> Thanks, Maxime

