combine multiple Intel scalar Tx paths
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest35 patches 12 repliesIn review
- v435 patches 60 repliesSuperseded
- v336 patches 22 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 36 patches | 3 replies | Superseded | |
| v1 RFC | 27 patches | 3 replies | Superseded |
Changes in v5 from the cover letter
- more updates following review including:
* dropped patch 19 for new EAL macro, and used struct alignment instead
* added extra comments for some code, e.g. reason to remove volatile
* dropped patch 22 marking a branch as unlikely
* split bugfix off patch 24
* corrected idpf path selection logic to not assume in-order queue setup
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/35 | net/intel: create common Tx descriptor structuredrivers/ drivers/ drivers/ +19 more | +104 | 0 replies | |
| 2/35 | net/intel: fix memory leak on TX queue setup failuredrivers/ drivers/ | +2 | 1 reply | |
| 3/35 | net/intel: use common Tx ring structuredrivers/ drivers/ drivers/ +20 more | +84 | 0 replies | |
| 4/35 | net/intel: create common post-Tx cleanup functiondrivers/ drivers/ drivers/ +3 more | +85 | 0 replies | |
| 5/35 | net/intel: consolidate definitions for Tx desc fieldsdrivers/ drivers/ drivers/ +23 more | +409 | 0 replies | |
| 6/35 | net/intel: add common fn to calculate needed descriptorsdrivers/ drivers/ drivers/ +2 more | +41 | 0 replies | |
| 7/35 | net/ice: refactor context descriptor handlingdrivers/ | +57 | 1 reply | |
| 8/35 | net/i40e: refactor context descriptor handlingdrivers/ | +63 | 1 reply | |
| 9/35 | net/idpf: refactor context descriptor handlingdrivers/ | +28 | 0 replies | |
| 10/35 | net/intel: consolidate checksum mask definitiondrivers/ drivers/ drivers/ +4 more | +14 | 0 replies | |
| 11/35 | net/intel: create common checksum Tx offload functiondrivers/ drivers/ drivers/ +2 more | +54 | 0 replies | |
| 12/35 | net/intel: create a common scalar Tx functiondrivers/ drivers/ | +270 | 0 replies | |
| 13/35 | net/i40e: use common scalar Tx functiondrivers/ | +2 | 0 replies | |
| 14/35 | net/intel: add IPsec hooks to common Tx functiondrivers/ drivers/ drivers/ | +60 | 0 replies | |
| 15/35 | net/intel: support configurable VLAN tag insertion on Txdrivers/ drivers/ drivers/ +1 more | +30 | 1 reply | |
| 16/35 | net/iavf: use common scalar Tx functiondrivers/ drivers/ drivers/ | +108 | 0 replies | |
| 17/35 | net/i40e: document requirement for QinQ supportdoc/ drivers/ | +27 | 0 replies | |
| 18/35 | net/idpf: use common scalar Tx functiondrivers/ | +10 | 0 replies | |
| 19/35 | net/intel: avoid writing the final pkt descriptor twicedrivers/ | +6 | 0 replies | |
| 20/35 | net/intel: write descriptors using non-volatile pointersdrivers/ | +20 | 2 replies | |
| 21/35 | net/intel: remove unnecessary flag clearingdrivers/ | +0 | 0 replies | |
| 22/35 | net/intel: add special handling for single desc packetsdrivers/ | +26 | 0 replies | |
| 23/35 | net/intel: use separate array for desc status trackingdrivers/ drivers/ drivers/ +5 more | +130 | 3 replies | |
| 24/35 | net/ixgbe: use separate array for desc status trackingdrivers/ | +47 | 0 replies | |
| 25/35 | net/intel: drop unused Tx queue used countdrivers/ drivers/ drivers/ +6 more | +3 | 0 replies | |
| 26/35 | net/intel: remove index for tracking end of packetdrivers/ drivers/ drivers/ +4 more | +15 | 0 replies | |
| 27/35 | net/intel: merge ring writes in simple Tx for ice and i40edrivers/ drivers/ drivers/ +9 more | +86 | 0 replies | |
| 28/35 | net/intel: consolidate ice and i40e buffer free functiondrivers/ drivers/ drivers/ +1 more | +65 | 0 replies | |
| 29/35 | net/intel: complete merging simple Tx pathsdrivers/ drivers/ drivers/ | +89 | 0 replies | |
| 30/35 | net/intel: use non-volatile stores in simple Tx functiondrivers/ | +21 | 0 replies | |
| 31/35 | net/intel: align scalar simple Tx path with vector logicdrivers/ | +34 | 0 replies | |
| 32/35 | net/intel: use vector SW ring entry for simple pathdrivers/ drivers/ drivers/ +5 more | +18 | 0 replies | |
| 33/35 | net/intel: use vector mbuf cleanup from simple scalar pathdrivers/ drivers/ drivers/ | +17 | 0 replies | |
| 34/35 | net/idpf: enable simple Tx functiondrivers/ drivers/ drivers/ +2 more | +56 | 1 reply | |
| 35/35 | net/cpfl: enable simple Tx functiondrivers/ | +34 | 1 reply |
Reviews trailers per patch
34 of 35 patches have a Reviewed-by or Acked-by.
| Patch | Ciara Loftus | Anatoly Burakov | Vladimir Medvedkin | Morten Brørup |
|---|---|---|---|---|
| 1/35 | A-b | |||
| 2/35 | A-b | |||
| 3/35 | A-b | |||
| 4/35 | A-b | |||
| 5/35 | A-b | |||
| 6/35 | A-b | |||
| 7/35 | A-b | |||
| 8/35 | A-b | |||
| 9/35 | A-b | A-b | ||
| 10/35 | A-b | |||
| 11/35 | A-b | |||
| 12/35 | A-b | |||
| 13/35 | A-b | |||
| 14/35 | A-b | |||
| 15/35 | A-b | |||
| 16/35 | A-b | |||
| 17/35 | A-b | |||
| 18/35 | A-b | |||
| 19/35 | A-b | |||
| 20/35 | ||||
| 21/35 | A-b | |||
| 22/35 | A-b | |||
| 23/35 | A-b | A-b | ||
| 24/35 | A-b | |||
| 25/35 | A-b | |||
| 26/35 | A-b | |||
| 27/35 | A-b | |||
| 28/35 | A-b | |||
| 29/35 | A-b | |||
| 30/35 | A-b | |||
| 31/35 | A-b | |||
| 32/35 | A-b | |||
| 33/35 | A-b | |||
| 34/35 | A-b | |||
| 35/35 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v5 00/35] combine multiple Intel scalar Tx paths
The scalar Tx paths, with support for offloads and multiple mbufs per packet, are almost identical across drivers ice, i40e, iavf and the single-queue mode of idpf. Therefore, we can do some rework to combine these code paths into a single function which is parameterized by compile-time constants, allowing code saving to give us a single path to optimize and maintain - apart from edge cases like IPSec support in iavf.
The ixgbe driver has a number of similarities too, which we take advantage of where we can, but the overall descriptor format is sufficiently different that its main scalar code path is kept separate.
Once merged, we can then optimize the drivers a bit to improve performance, and also easily extend some drivers to use additional paths for better performance, e.g. add the "simple scalar" path to IDPF driver for better performance on platforms without AVX.
V5:
- more updates following review including:
* dropped patch 19 for new EAL macro, and used struct alignment instead
* added extra comments for some code, e.g. reason to remove volatile
* dropped patch 22 marking a branch as unlikely
* split bugfix off patch 24
* corrected idpf path selection logic to not assume in-order queue setup
V4:
- Updates following review:
- merged patches 3 and 5
- renamed new file to tx_scalar.h
- added UDP_TSO flag to drivers
- other minor fixups
V3:
- rebase on top of latest next-net-intel tree
- fix issues with iavf and cpfl drivers seen in some testing
V2:
- reworked the simple-scalar path as well as full scalar one
- added simple scalar path support to idpf driver
- small cleanups, e.g. issues flagged by checkpatch
Bruce Richardson (36):
net/intel: create common Tx descriptor structure net/intel: fix memory leak on TX queue setup failure net/intel: use common Tx ring structure net/intel: create common post-Tx cleanup function net/intel: consolidate definitions for Tx desc fields net/intel: add common fn to calculate needed descriptors net/ice: refactor context descriptor handling net/i40e: refactor context descriptor handling net/idpf: refactor context descriptor handling net/intel: consolidate checksum mask definition net/intel: create common checksum Tx offload function net/intel: create a common scalar Tx function net/i40e: use common scalar Tx function net/intel: add IPsec hooks to common Tx function net/intel: support configurable VLAN tag insertion on Tx net/iavf: use common scalar Tx function net/i40e: document requirement for QinQ support net/idpf: use common scalar Tx function net/intel: avoid writing the final pkt descriptor twice net/intel: write descriptors using non-volatile pointers net/intel: remove unnecessary flag clearing net/intel: mark mid-burst ring cleanup as unlikely net/intel: add special handling for single desc packets net/intel: use separate array for desc status tracking net/ixgbe: use separate array for desc status tracking net/intel: drop unused Tx queue used count net/intel: remove index for tracking end of packet net/intel: merge ring writes in simple Tx for ice and i40e net/intel: consolidate ice and i40e buffer free function net/intel: complete merging simple Tx paths net/intel: use non-volatile stores in simple Tx function net/intel: align scalar simple Tx path with vector logic net/intel: use vector SW ring entry for simple path net/intel: use vector mbuf cleanup from simple scalar path net/idpf: enable simple Tx function
net/cpfl: enable simple Tx function
doc/guides/nics/i40e.rst | 18 + drivers/net/intel/common/tx.h | 124 ++- drivers/net/intel/common/tx_scalar.h | 589 ++++++++++++++ drivers/net/intel/cpfl/cpfl_rxtx.c | 64 +- drivers/net/intel/i40e/i40e_fdir.c | 34 +- drivers/net/intel/i40e/i40e_rxtx.c | 673 +++------------- drivers/net/intel/i40e/i40e_rxtx.h | 17 +- .../net/intel/i40e/i40e_rxtx_vec_altivec.c | 25 +- drivers/net/intel/i40e/i40e_rxtx_vec_avx2.c | 36 +- drivers/net/intel/i40e/i40e_rxtx_vec_avx512.c | 52 +- drivers/net/intel/i40e/i40e_rxtx_vec_common.h | 6 +- drivers/net/intel/i40e/i40e_rxtx_vec_neon.c | 25 +- drivers/net/intel/iavf/iavf_rxtx.c | 637 ++++----------- drivers/net/intel/iavf/iavf_rxtx.h | 31 +- drivers/net/intel/iavf/iavf_rxtx_vec_avx2.c | 55 +- drivers/net/intel/iavf/iavf_rxtx_vec_avx512.c | 104 +-- drivers/net/intel/iavf/iavf_rxtx_vec_common.h | 36 +- drivers/net/intel/ice/ice_dcf_ethdev.c | 10 +- drivers/net/intel/ice/ice_rxtx.c | 740 ++++-------------- drivers/net/intel/ice/ice_rxtx.h | 16 +- drivers/net/intel/ice/ice_rxtx_vec_avx2.c | 55 +- drivers/net/intel/ice/ice_rxtx_vec_avx512.c | 53 +- drivers/net/intel/ice/ice_rxtx_vec_common.h | 43 +- drivers/net/intel/idpf/idpf_common_device.h | 1 + drivers/net/intel/idpf/idpf_common_rxtx.c | 314 ++------ drivers/net/intel/idpf/idpf_common_rxtx.h | 24 +- .../net/intel/idpf/idpf_common_rxtx_avx2.c | 53 +- .../net/intel/idpf/idpf_common_rxtx_avx512.c | 54 +- drivers/net/intel/idpf/idpf_rxtx.c | 55 +- drivers/net/intel/idpf/idpf_rxtx_vec_common.h | 6 +- drivers/net/intel/ixgbe/ixgbe_rxtx.c | 103 ++- .../net/intel/ixgbe/ixgbe_rxtx_vec_common.c | 3 +- 32 files changed, 1612 insertions(+), 2444 deletions(-) create mode 100644 drivers/net/intel/common/tx_scalar.h
--
2.51.0