Skip to content

Add sampling and mirroring support in MLX5 PMD

Jiawei Wang dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 1 replyIn review
  2. v210 patches 0 repliesSuperseded
  3. v110 patches 0 repliesSuperseded

Changes in v3 from the cover letter

* Use C11 atomic builtins for sampling and mirroring resource register and release.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10common/mlx5: glue for sample actiondrivers/common/mlx5/linux/meson.build drivers/common/mlx5/linux/mlx5_glue.c drivers/common/mlx5/linux/mlx5_glue.h +1 more+40 -00 replies
2/10common/mlx5: query sampler object capability via DevXdrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h drivers/common/mlx5/mlx5_prm.h+79 -00 replies
3/10net/mlx5: add the validate sample actiondrivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.h +1 more+153 -00 replies
4/10net/mlx5: split sample flow into two sub flowsdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c +1 more+394 -170 replies
5/10net/mlx5: update translate function for sample actiondrivers/net/mlx5/mlx5_flow.c drivers/net/mlx5/mlx5_flow_dv.c+511 -150 replies
6/10common/mlx5: add glue function for mirroringdrivers/common/mlx5/linux/meson.build drivers/common/mlx5/linux/mlx5_glue.c drivers/common/mlx5/linux/mlx5_glue.h+48 -20 replies
7/10net/mlx5: update validation for mirroring flowdrivers/net/mlx5/mlx5_flow.c drivers/net/mlx5/mlx5_flow_dv.c+99 -50 replies
8/10net/mlx5: update translate function for mirrordrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.h +1 more+470 -290 replies
9/10doc: add the sample flow limitation descriptiondoc/guides/nics/mlx5.rst+6 -00 replies
10/10doc: update offload dependencies documentdoc/guides/nics/mlx5.rst+5 -00 replies

Reviews trailers per patch

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

PatchViacheslav OvsiienkoAsaf PensoOri Kam
1/10A-b
2/10A-b A-b
3/10A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10A-b
10/10R-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 3 reviewers.

Read the v3 thread

Cover letter [dpdk-dev] [PATCH v3 00/10] Add sampling and mirroring support in MLX5 PMD

This patch set implement the flow sampling and mirroring for mlx5 driver.
MLX5 PMD driver will be responsible for validate and translate the sample action while creating a flow.

Depends-on: series-12828 ("support the flow-based traffic sampling")

v3:
* Use C11 atomic builtins for sampling and mirroring resource register and release.

v2:
* Fix incorrect check for E-Switch sample split flow.

Jiawei Wang (10):
common/mlx5: glue for sample action common/mlx5: query sampler object capability via DevX net/mlx5: add the validate sample action net/mlx5: split sample flow into two sub flows net/mlx5: update translate function for sample action common/mlx5: add glue function for mirroring net/mlx5: update validation for mirroring flow net/mlx5: update translate function for mirror
doc: add the sample flow limitation description
doc: update offload dependencies document

 doc/guides/nics/mlx5.rst              |   11 +
 drivers/common/mlx5/linux/meson.build |    4 +
 drivers/common/mlx5/linux/mlx5_glue.c |   37 ++
 drivers/common/mlx5/linux/mlx5_glue.h |   35 +
 drivers/common/mlx5/mlx5_devx_cmds.c  |   27 +
 drivers/common/mlx5/mlx5_devx_cmds.h  |    1 +
 drivers/common/mlx5/mlx5_prm.h        |   61 ++
 drivers/net/mlx5/linux/mlx5_os.c      |   14 +
 drivers/net/mlx5/mlx5.c               |   22 +
 drivers/net/mlx5/mlx5.h               |    6 +
 drivers/net/mlx5/mlx5_flow.c          |  400 +++++++++++-
 drivers/net/mlx5/mlx5_flow.h          |   61 ++
 drivers/net/mlx5/mlx5_flow_dv.c       | 1130 ++++++++++++++++++++++++++++++++-
 13 files changed, 1773 insertions(+), 36 deletions(-)
Signature · 1 line
1.8.3.1