Skip to content

net/mlx5: HW steering PMD update

Suanming Mou dpdk-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest18 patches 19 repliesIn review
  2. v518 patches 0 repliesSuperseded
  3. v418 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v317 patches0 repliesSuperseded
v217 patches0 repliesSuperseded
v127 patches0 repliesSuperseded

Changes in v6 from the cover letter

- Rebase to the latest version.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18net/mlx5: fix invalid flow attributesdrivers/net/mlx5/mlx5_flow.c+26 -121 reply
2/18net/mlx5: fix IPv6 and TCP RSS hash fieldsdrivers/net/mlx5/mlx5_flow_dv.c drivers/net/mlx5/mlx5_flow_hw.c+62 -91 reply
3/18net/mlx5: add shared header reformat supportdrivers/net/mlx5/mlx5_flow.h drivers/net/mlx5/mlx5_flow_hw.c+39 -911 reply
4/18net/mlx5: add modify field hws supportdoc/guides/rel_notes/release_22_11.rst drivers/common/mlx5/mlx5_prm.h drivers/net/mlx5/linux/mlx5_os.c +4 more+1009 -2761 reply
5/18net/mlx5: add HW steering port actiondoc/guides/nics/mlx5.rst drivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.c +7 more+1595 -1181 reply
6/18net/mlx5: add extended metadata mode for hardware steeringdoc/guides/nics/mlx5.rst doc/guides/rel_notes/release_22_11.rst drivers/net/mlx5/linux/mlx5_os.c +7 more+877 -851 reply
7/18net/mlx5: add HW steering meter actiondoc/guides/rel_notes/release_22_11.rst drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c +4 more+1111 -361 reply
8/18net/mlx5: add HW steering counter actiondoc/guides/rel_notes/release_22_11.rst drivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h +12 more+1831 -311 reply
9/18net/mlx5: support DR action template APIdrivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h +3 more+543 -1231 reply
10/18net/mlx5: add HW steering connection tracking supportdoc/guides/nics/mlx5.rst doc/guides/rel_notes/release_22_11.rst drivers/net/mlx5/linux/mlx5_os.c +7 more+619 -781 reply
11/18net/mlx5: add HW steering VLAN push, pop and VID modify flow actionsdrivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.h drivers/net/mlx5/mlx5_flow_dv.c +1 more+463 -371 reply
12/18net/mlx5: implement METER MARK indirect action for HWSdoc/guides/nics/features/default.ini doc/guides/nics/features/mlx5.ini doc/guides/nics/mlx5.rst +8 more+778 -1051 reply
13/18net/mlx5: add HWS AGE action supportdoc/guides/nics/mlx5.rst drivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h +9 more+2127 -2671 reply
14/18net/mlx5: add async action push and pull supportdrivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c drivers/net/mlx5/mlx5_flow.h +4 more+626 -1041 reply
15/18net/mlx5: support flow integrity in HWS group 0drivers/net/mlx5/mlx5_flow.h drivers/net/mlx5/mlx5_flow_dv.c drivers/net/mlx5/mlx5_flow_hw.c+90 -821 reply
16/18net/mlx5: support device control for E-Switch default ruledoc/guides/nics/features/mlx5.ini drivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.h +9 more+288 -1881 reply
17/18net/mlx5: support device control of representor matchingdoc/guides/nics/mlx5.rst drivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.c +5 more+794 -1661 reply
18/18net/mlx5: create control flow rules with HWSdoc/guides/rel_notes/release_22_11.rst drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.h +3 more+881 -21 reply

Reviews trailers per patch

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

PatchViacheslav Ovsiienko
1/18A-b
2/18A-b
3/18A-b
4/18A-b
5/18A-b
6/18A-b
7/18A-b
8/18A-b
9/18A-b
10/18A-b
11/18A-b
12/18A-b
13/18A-b
14/18A-b
15/18A-b
16/18A-b
17/18A-b
18/18A-b

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

Read the v6 thread

Cover letter [PATCH v6 00/18] net/mlx5: HW steering PMD update

The skeleton of mlx5 HW steering(HWS) has been updated into upstream for pretty a long time, but not updated anymore due to missing of the low-level steering layer code. Luckily, better late than never, the steering layer finnaly comes[1].

This series will add more features to the existing PMD code:
- FDB and metadata copy.
- Modify field.
- Meter color.
- Counter.
- Aging.
- Action template pre-parser optimization.
- Connection tracking.
- Control flow.

Some features such as meter/aging/ct touches the public API, and public API changes have been sent to ML much earily in other threads in order not to be swallowed by this big series.

The dpends patches as below:
[1]https://inbox.dpdk.org/dev/[email protected]/

---

v6:
- Rebase to the latest version.

v5:
- Rebase to the latest version.

v4:
- Disable aging due to the flow age API change still in progress.

    https://patches.dpdk.org/project/dpdk/cover/[email protected]/

- Add control flow for HWS.

v3:
- Fixed flow can't be aged out.
- Fix error not be filled properly while table creat failed.
- Remove transfer_mode in flow attributes before ethdev layer applied.

    https://patches.dpdk.org/project/dpdk/patch/[email protected]/

v2:
- Remove the rte_flow patches as they will be integrated in other thread.
- Fix compilation issues.
- Make the patches be better organized.

Alexander Kozyrev (2):
net/mlx5: add HW steering meter action net/mlx5: implement METER MARK indirect action for HWS

Bing Zhao (1):
net/mlx5: add extended metadata mode for hardware steering

Dariusz Sosnowski (5):
net/mlx5: add HW steering port action
net/mlx5: support DR action template API net/mlx5: support device control for E-Switch default rule net/mlx5: support device control of representor matching net/mlx5: create control flow rules with HWS

Gregory Etelson (2):
net/mlx5: add HW steering VLAN push, pop and VID modify flow actions net/mlx5: support flow integrity in HWS group 0

Michael Baum (1):
net/mlx5: add HWS AGE action support

Suanming Mou (6):
net/mlx5: fix invalid flow attributes net/mlx5: fix IPv6 and TCP RSS hash fields net/mlx5: add shared header reformat support net/mlx5: add modify field hws support net/mlx5: add HW steering connection tracking support net/mlx5: add async action push and pull support

Xiaoyu Min (1):
net/mlx5: add HW steering counter action

 doc/guides/nics/features/default.ini   |    1 +
 doc/guides/nics/features/mlx5.ini      |    2 +
 doc/guides/nics/mlx5.rst               |   43 +-
 doc/guides/rel_notes/release_22_11.rst |    8 +-
 drivers/common/mlx5/mlx5_devx_cmds.c   |   50 +
 drivers/common/mlx5/mlx5_devx_cmds.h   |   27 +
 drivers/common/mlx5/mlx5_prm.h         |   22 +-
 drivers/common/mlx5/version.map        |    1 +
 drivers/net/mlx5/linux/mlx5_os.c       |   78 +-
 drivers/net/mlx5/meson.build           |    1 +
 drivers/net/mlx5/mlx5.c                |  126 +-
 drivers/net/mlx5/mlx5.h                |  322 +-
 drivers/net/mlx5/mlx5_defs.h           |    5 +
 drivers/net/mlx5/mlx5_flow.c           |  409 +-
 drivers/net/mlx5/mlx5_flow.h           |  335 +-
 drivers/net/mlx5/mlx5_flow_aso.c       |  797 ++-
 drivers/net/mlx5/mlx5_flow_dv.c        | 1128 +--
 drivers/net/mlx5/mlx5_flow_hw.c        | 8789 +++++++++++++++++++++---
 drivers/net/mlx5/mlx5_flow_meter.c     |  776 ++-
 drivers/net/mlx5/mlx5_flow_verbs.c     |    8 +-
 drivers/net/mlx5/mlx5_hws_cnt.c        | 1247 ++++
 drivers/net/mlx5/mlx5_hws_cnt.h        |  703 ++
 drivers/net/mlx5/mlx5_rxq.c            |    3 +-
 drivers/net/mlx5/mlx5_trigger.c        |  272 +-
 drivers/net/mlx5/mlx5_tx.h             |    1 +
 drivers/net/mlx5/mlx5_txq.c            |   47 +
 drivers/net/mlx5/mlx5_utils.h          |   10 +-
 drivers/net/mlx5/rte_pmd_mlx5.h        |   17 +
 drivers/net/mlx5/version.map           |    1 +
 29 files changed, 13589 insertions(+), 1640 deletions(-)
 create mode 100644 drivers/net/mlx5/mlx5_hws_cnt.c
 create mode 100644 drivers/net/mlx5/mlx5_hws_cnt.h
Signature · 1 line
2.25.1