net/mlx5: flow insertion performance improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest11 patches 1 replyIn review
- v111 patches 1 replySuperseded
Changes in v2 from the cover letter
- Rebased.
- Applied Acked-by tags from previous version.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | net/mlx5: allocate local DR rule action buffersdrivers/ drivers/ | +59 | 0 replies | |
| 2/11 | net/mlx5/hws: add check for matcher rule update supportdrivers/ drivers/ | +20 | 0 replies | |
| 3/11 | net/mlx5/hws: add check if matcher contains complex rulesdrivers/ drivers/ drivers/ +1 more | +33 | 0 replies | |
| 4/11 | net/mlx5: skip the unneeded resource index allocationdrivers/ | +76 | 0 replies | |
| 5/11 | net/mlx5: remove action params from jobdrivers/ drivers/ drivers/ | +63 | 0 replies | |
| 6/11 | net/mlx5: remove flow pattern from jobdrivers/ drivers/ drivers/ | +37 | 0 replies | |
| 7/11 | net/mlx5: remove updated flow from jobdrivers/ drivers/ drivers/ | +89 | 0 replies | |
| 8/11 | net/mlx5: use flow as operation containerdrivers/ drivers/ drivers/ | +116 | 0 replies | |
| 9/11 | net/mlx5: move rarely used flow fields outsidedrivers/ drivers/ | +138 | 0 replies | |
| 10/11 | net/mlx5: reuse flow fieldsdrivers/ drivers/ | +83 | 0 replies | |
| 11/11 | net/mlx5: remove unneeded device status checkingdrivers/ | +0 | 0 replies |
Reviews trailers per patch
All 11 patches have a Reviewed-by or Acked-by.
| Patch | Ori Kam |
|---|---|
| 1/11 | A-b |
| 2/11 | A-b |
| 3/11 | A-b |
| 4/11 | A-b |
| 5/11 | A-b |
| 6/11 | A-b |
| 7/11 | A-b |
| 8/11 | A-b |
| 9/11 | A-b |
| 10/11 | A-b |
| 11/11 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/11] net/mlx5: flow insertion performance improvements
Goal of this patchset is to improve the throughput of flow insertion and deletion in mlx5 PMD when HW Steering flow engine is used.
- Patch 1 - Use preallocated per-queue, per-actions template buffer for storing translated flow actions, instead of allocating and filling it on demand, on each flow operation.
- Patches 2-4 - Make resource index allocation optional. This allocation will be skipped when it is not required by the created template table.
- Patches 5-7 - Reduce memory footprint of the internal flow queue.
- Patch 8 - Remove indirection between flow job and flow itself, by using flow as an operation container.
- Patches 9-10 - Reduce memory footpring of flow struct by moving rarely used flow fields outside of the main flow struct. These fields will accesses only when needed.
Also remove unneeded zmalloc usage.
- Patch 11 - Remove unneeded device status check in flow create.
In general all of these changes result in the following improvements (all numbers are averaged Kflows/sec):
| | Insertion) | +% | Deletion | +% | |--------------|:----------:|:------:|:--------:|:-----:| | baseline | 6338.7 | | 9739.6 | | | improvements | 6978.8 | +10.1% | 10432.4 | +7.1% |
The basic benchmark was run on ConnectX-6 Dx (22.40.1000), on the system with Intel Xeon Platinum 8380 CPU.
v2:
- Rebased.
- Applied Acked-by tags from previous version.
Bing Zhao (2):
net/mlx5: skip the unneeded resource index allocation net/mlx5: remove unneeded device status checking
Dariusz Sosnowski (7):
net/mlx5: allocate local DR rule action buffers
net/mlx5: remove action params from job
net/mlx5: remove flow pattern from job
net/mlx5: remove updated flow from job
net/mlx5: use flow as operation container
net/mlx5: move rarely used flow fields outside
net/mlx5: reuse flow fields
Erez Shitrit (2):
net/mlx5/hws: add check for matcher rule update support net/mlx5/hws: add check if matcher contains complex rules
drivers/net/mlx5/hws/mlx5dr.h | 16 + drivers/net/mlx5/hws/mlx5dr_action.c | 6 + drivers/net/mlx5/hws/mlx5dr_action.h | 2 + drivers/net/mlx5/hws/mlx5dr_matcher.c | 29 + drivers/net/mlx5/mlx5.h | 29 +- drivers/net/mlx5/mlx5_flow.h | 128 ++++- drivers/net/mlx5/mlx5_flow_hw.c | 794 ++++++++++++++++---------- 7 files changed, 666 insertions(+), 338 deletions(-)
--
2.39.2