Skip to content

add packed ring vectorized path

Marvin Liu dpdk-dev 13 versions – Applied

Status from this message: Applied to dpdk-next-virtio/master,

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest9 patches 1 replyApplied
  2. v119 patches 3 repliesSuperseded
  3. v109 patches 16 repliesSuperseded
Earlier versions · 10
VersionPostedPatchesRepliesStatus
v9 posting 2/20 of 9 patches0 repliesSuperseded
v9 posting 1/29 patches14 repliesSuperseded
v89 patches7 repliesSuperseded
v79 patches0 repliesSuperseded
v69 patches3 repliesSuperseded
v59 patches0 repliesSuperseded
v48 patches2 repliesSuperseded
v37 patches3 repliesSuperseded
v27 patches0 repliesSuperseded
v17 patches0 repliesSuperseded

Changes in v12 from the cover letter

* eliminate weak symbols in data path
* remove desc extra padding which can impact normal path
* fix enqueue address invalid

Patches in v12 Applied

#Subject and filesSizeRepliesApplied
1/9net/virtio: add Rx free threshold settingdrivers/net/virtio/virtio_rxtx.c drivers/net/virtio/virtqueue.h+25 -00 replies
2/9net/virtio: inorder should depend on feature bitdrivers/net/virtio/virtio_rxtx.c+4 -30 replies
3/9net/virtio: add vectorized devargdoc/guides/nics/virtio.rst drivers/net/virtio/virtio_ethdev.c drivers/net/virtio/virtio_pci.h +3 more+58 -200 replies
4/9net/virtio-user: add vectorized devargdoc/guides/nics/virtio.rst drivers/net/virtio/virtio_user_ethdev.c+23 -10 replies
5/9net/virtio: reuse packed ring functionsdrivers/net/virtio/virtio_rxtx.c drivers/net/virtio/virtqueue.h+302 -2990 replies
6/9net/virtio: add vectorized packed ring Rx pathdrivers/net/virtio/Makefile drivers/net/virtio/meson.build drivers/net/virtio/virtio_ethdev.h +3 more+450 -20 replies
7/9net/virtio: add vectorized packed ring Tx pathdrivers/net/virtio/virtio_ethdev.h drivers/net/virtio/virtio_rxtx.c drivers/net/virtio/virtio_rxtx_packed_avx.c+244 -00 replies
8/9net/virtio: add election for vectorized pathdrivers/net/virtio/virtio_ethdev.c+76 -230 replies
9/9doc: add packed vectorized pathdoc/guides/nics/virtio.rst+25 -140 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchWang, YinanMaxime Coquelin
SeriesT-b
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v12 thread

Cover letter [dpdk-dev] [PATCH v12 0/9] add packed ring vectorized path

This patch set introduced vectorized path 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 path can fully transformed into vectorized path. Packed ring Rx path can be vectorized when requirements met(LRO and mergeable disabled).

New device parameter "vectorized" will be introduced in this patch set. This parameter will be workable for both virtio device and virtio user vdev. It will also unify split and packed ring vectorized path default setting. Path election logic will check dependencies of vectorized path. Packed ring vectorized path is dependent on building/running environment and features like IN_ORDER and VERSION_1 enabled, MRG and LRO disabled. If vectorized path is not supported, will fallback to normal path.

v12:
* eliminate weak symbols in data path
* remove desc extra padding which can impact normal path
* fix enqueue address invalid

v11:
* fix i686 build warnings
* fix typo in doc

v10:
* reuse packed ring xmit cleanup

v9:
* replace RTE_LIBRTE_VIRTIO_INC_VECTOR with vectorized devarg
* reorder patch sequence

v8:
* fix meson build error on ubuntu16.04 and suse15

v7:
* default vectorization is disabled
* compilation time check dependency on rte_mbuf structure
* offsets are calcuated when compiling
* remove useless barrier as descs are batched store&load
* vindex of scatter is directly set
* some comments updates
* enable vectorized path in meson build

v6:
* fix issue when size not power of 2

v5:
* remove cpuflags definition as required extensions always come with AVX512F on x86_64
* inorder actions should depend on feature bit
* check ring type in rx queue setup
* rewrite some commit logs
* fix some checkpatch warnings

v4:
* rename 'packed_vec' to 'vectorized', also used in split ring
* add RTE_LIBRTE_VIRTIO_INC_VECTOR config for virtio ethdev
* check required AVX512 extensions cpuflags
* combine split and packed ring datapath selection logic
* remove limitation that size must power of two
* clear 12Bytes virtio_net_hdr

v3:
* remove virtio_net_hdr array for better performance
* disable 'packed_vec' by default

v2:
* more function blocks replaced by vector instructions
* clean virtio_net_hdr by vector instruction
* allow header room size change
* add 'packed_vec' option in virtio_user vdev
* fix build not check whether AVX512 enabled
* doc update

Marvin Liu (9):
net/virtio: add Rx free threshold setting net/virtio: inorder should depend on feature bit net/virtio: add vectorized devarg net/virtio-user: add vectorized devarg net/virtio: reuse packed ring functions net/virtio: add vectorized packed ring Rx path net/virtio: add vectorized packed ring Tx path net/virtio: add election for vectorized path
doc: add packed vectorized path

 doc/guides/nics/virtio.rst                  |  52 +-
 drivers/net/virtio/Makefile                 |  35 ++
 drivers/net/virtio/meson.build              |  14 +
 drivers/net/virtio/virtio_ethdev.c          | 142 ++++-
 drivers/net/virtio/virtio_ethdev.h          |   6 +
 drivers/net/virtio/virtio_pci.h             |   3 +-
 drivers/net/virtio/virtio_rxtx.c            | 351 ++---------
 drivers/net/virtio/virtio_rxtx_packed_avx.c | 607 ++++++++++++++++++++
 drivers/net/virtio/virtio_user_ethdev.c     |  32 +-
 drivers/net/virtio/virtqueue.c              |   7 +-
 drivers/net/virtio/virtqueue.h              | 304 ++++++++++
 11 files changed, 1199 insertions(+), 354 deletions(-)
 create mode 100644 drivers/net/virtio/virtio_rxtx_packed_avx.c
Signature · 1 line
2.17.1