Skip to content

Add the E-Switch mirroring and jump supports

Jiawei Wang dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v15 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* Rebase
* Update commit message and document description

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5common/mlx5: query register c preserve capability via DevXdrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h drivers/common/mlx5/mlx5_prm.h+6 -10 replies
2/5net/mlx5: support E-Switch mirroring and jump in one flowdrivers/net/mlx5/mlx5_flow.c drivers/net/mlx5/mlx5_flow.h drivers/net/mlx5/mlx5_flow_dv.c+80 -390 replies
3/5net/mlx5: extend the skip scale flagdrivers/net/mlx5/mlx5_flow.c drivers/net/mlx5/mlx5_flow.h drivers/net/mlx5/mlx5_flow_dv.c+26 -60 replies
4/5net/mlx5: update modify actions support for E-Switch mirrordrivers/net/mlx5/mlx5_flow.c drivers/net/mlx5/mlx5_flow_dv.c+123 -620 replies
5/5doc: update the advanced E-switch mirroring supportsdoc/guides/nics/mlx5.rst doc/guides/rel_notes/release_21_02.rst+9 -01 reply

Reviews trailers per patch

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

PatchViacheslav Ovsiienko
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

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

Read the v2 thread

Cover letter [dpdk-dev] [PATCH v2 0/5] Add the E-Switch mirroring and jump supports

MLX5 E-Switch mirroring is implemented as multiple destination array in one steering table. The array currently supports only port ID as destination actions.

This patchset adds the below supports for MLX5 PMD driver:
- Supports the metadata register Cx preserve capability query.
- Supports the jump action support as one of destination of array.
- Supports the modify action only impact on the one of destination.

The examples for the E-Switch flow use case and result as below:
set sample_actions 0 port_id id 1 / end
flow create 0 ingress transfer pattern eth / end actions sample ratio 1 index 0 / jump group 1 / end flow create 1 ingress transfer group 1 pattern eth / end actions set_mac_dst mac_addr 00:aa:bb:cc:dd:ee / port_id id 2 / end

The flow results all the matched ingress packets are mirrored to port id 1 and go to group 1. In the group 1, packets are modified with the destination mac and sent to port id 2.

v2:
* Rebase
* Update commit message and document description

Jiawei Wang (5):
common/mlx5: query register c preserve capability via DevX net/mlx5: support E-Switch mirroring and jump in one flow net/mlx5: extend the skip scale flag
net/mlx5: update modify actions support for E-Switch mirror
doc: update the advanced E-switch mirroring supports

 doc/guides/nics/mlx5.rst               |   2 +
 doc/guides/rel_notes/release_21_02.rst |   7 ++
 drivers/common/mlx5/mlx5_devx_cmds.c   |   2 +
 drivers/common/mlx5/mlx5_devx_cmds.h   |   1 +
 drivers/common/mlx5/mlx5_prm.h         |   4 +-
 drivers/net/mlx5/mlx5_flow.c           | 203 +++++++++++++++++++++++----------
 drivers/net/mlx5/mlx5_flow.h           |  23 +++-
 drivers/net/mlx5/mlx5_flow_dv.c        |  92 +++++++++------
 8 files changed, 235 insertions(+), 99 deletions(-)
Signature · 1 line
1.8.3.1