Skip to content

AVX2 Vectorized Rx/Tx functions for i40e

Bruce Richardson dpdk-dev 2 versions – Applied

Status from this message: Applied to dpdk-next-net-intel, with minor commit log changes. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 7 repliesApplied
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* Fixed incorrect config variable reference in makefile
* Added missing stub function for when vector drivers are disabled
* Added missing references to the new functions when checking for vector code paths, e.g. for ring tear-down

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2net/i40e: add AVX2 Tx functiondrivers/net/i40e/Makefile drivers/net/i40e/i40e_rxtx.c drivers/net/i40e/i40e_rxtx.h +1 more+232 -10 replies
2/2net/i40e: add AVX2 Rx functiondrivers/net/i40e/i40e_rxtx.c drivers/net/i40e/i40e_rxtx.h drivers/net/i40e/i40e_rxtx_vec_avx2.c+648 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchXiaoyun LiQi Zhang
SeriesA-b A-b
1/2
2/2

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

Read the v2 thread

Cover letter [PATCH v2 0/2] AVX2 Vectorized Rx/Tx functions for i40e

This patch adds an AVX2 vectorized path to the i40e driver, based on the existing SSE4.2 version. Using AVX2 instructions gives better performance than the SSE version, though the percentage increase depends on the exact settings used. For example:

* Using 16B rather than 32B descriptors gives the biggest benefit since 2 descriptors at a time can be read, rather than just 1 when 32B ones are used.
* Bigger burst sizes for RX gives improved performance - while we see an improvement with testpmd with the default burst size of 32, burst sizes of up to 128 give further improvements
* In my testing, most of the improvement comes from faster processing on the RX path, though the improved TX also gives benefit.

This has been tested on a system with CPU: "Intel(R) Xeon(R) Gold 6154 CPU @ 3.00GHz", and I've focused on testing with Rx ring sizes of approx 1k - generally --rxd=1024 and --txd=512, rather than the defaults which tend to give poorer zero-loss performance due to the smaller amount of buffering.

V2:
* Fixed incorrect config variable reference in makefile
* Added missing stub function for when vector drivers are disabled
* Added missing references to the new functions when checking for vector code paths, e.g. for ring tear-down

Bruce Richardson (2):
net/i40e: add AVX2 Tx function
net/i40e: add AVX2 Rx function

 drivers/net/i40e/Makefile             |  19 +
 drivers/net/i40e/i40e_rxtx.c          |  66 ++-
 drivers/net/i40e/i40e_rxtx.h          |   6 +
 drivers/net/i40e/i40e_rxtx_vec_avx2.c | 792 ++++++++++++++++++++++++++++++++++
 4 files changed, 880 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/i40e/i40e_rxtx_vec_avx2.c
Signature · 1 line
2.14.3