This patch set introduced vectorized datapath for packed ring. The size of packed ring descriptor is 16Bytes. Four batched descriptors are just placed into one cacheline. AVX512 instructions can well handle this kind of data. Packed ring TX datapath can fully transformed into vectorized datapath. Rx datapath also can be vectorized when features limiated(LRO and mergable disabled). User can specify whether disable vectorized packed ring datapath by 'packed_vec' parameter of virtio user vdev.
v2: 1. more function blocks replaced by vector instructions 2. clean virtio_net_hdr by vector instruction 3. allow header room size change 4. add 'packed_vec' option in virtio_user vdev 5. fix build not check whether AVX512 enabled 6. doc update Marvin Liu (7): net/virtio: add Rx free threshold setting net/virtio-user: add vectorized packed ring parameter net/virtio: add vectorized packed ring Rx function net/virtio: reuse packed ring xmit functions net/virtio: add vectorized packed ring Tx datapath net/virtio: add election for vectorized datapath doc: add packed vectorized datapath .../nics/features/virtio-packed_vec.ini | 22 + .../{virtio_vec.ini => virtio-split_vec.ini} | 2 +- doc/guides/nics/virtio.rst | 44 +- drivers/net/virtio/Makefile | 28 + drivers/net/virtio/meson.build | 11 + drivers/net/virtio/virtio_ethdev.c | 43 +- drivers/net/virtio/virtio_ethdev.h | 6 + drivers/net/virtio/virtio_pci.h | 2 + drivers/net/virtio/virtio_rxtx.c | 201 ++---- drivers/net/virtio/virtio_rxtx_packed_avx.c | 636 ++++++++++++++++++ drivers/net/virtio/virtio_user_ethdev.c | 27 +- drivers/net/virtio/virtqueue.h | 165 ++++- 12 files changed, 1005 insertions(+), 182 deletions(-) create mode 100644 doc/guides/nics/features/virtio-packed_vec.ini rename doc/guides/nics/features/{virtio_vec.ini => virtio-split_vec.ini} (88%) create mode 100644 drivers/net/virtio/virtio_rxtx_packed_avx.c -- 2.17.1