Skip to content

net/mlx5: support Geneve and options for HWS

Michael Baum dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest23 patches 1 replyIn review
  2. v123 patches 1 replySuperseded

Changes in v2 from the cover letter

- Rebase.
- Add "Acked-by" from v1.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23common/mlx5: fix duplicate read of general capabilitiesdrivers/common/mlx5/mlx5_devx_cmds.c+4 -140 replies
2/23common/mlx5: fix query sample info capabilitydrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h+5 -20 replies
3/23net/mlx5/hws: fix tunnel protocol checksdrivers/net/mlx5/hws/mlx5dr_definer.c+21 -220 replies
4/23net/mlx5: remove GENEVE options length limitationdrivers/net/mlx5/mlx5_flow_dv.c+0 -160 replies
5/23net/mlx5: fix GENEVE option item translationdrivers/net/mlx5/mlx5_flow_dv.c+11 -170 replies
6/23common/mlx5: add system image GUID attributedrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h+7 -40 replies
7/23common/mlx5: add GENEVE TLV option attribute structuredrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h drivers/net/mlx5/mlx5_flow_dv.c+30 -190 replies
8/23common/mlx5: add PRM attribute for TLV sampledrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h drivers/common/mlx5/mlx5_prm.h+34 -80 replies
9/23common/mlx5: add sample info query syndrome into error logdrivers/common/mlx5/mlx5_devx_cmds.c+4 -50 replies
10/23common/mlx5: query GENEVE option sample ID from HCA attrdrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h+3 -00 replies
11/23common/mlx5: add function to query GENEVE TLV optiondrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h drivers/common/mlx5/mlx5_prm.h +1 more+62 -00 replies
12/23net/mlx5: add physical device handledrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h+82 -80 replies
13/23net/mlx5: add GENEVE TLV options parser APIdoc/guides/nics/mlx5.rst doc/guides/platform/mlx5.rst drivers/net/mlx5/meson.build +7 more+945 -20 replies
14/23net/mlx5: add API to expose GENEVE option FW informationdrivers/net/mlx5/mlx5_flow.h drivers/net/mlx5/mlx5_flow_geneve.c+122 -00 replies
15/23net/mlx5: add testpmd support for GENEVE TLV parserdoc/guides/nics/mlx5.rst drivers/net/mlx5/mlx5_testpmd.c+652 -10 replies
16/23net/mlx5/hws: increase hl size for future compatibilitydrivers/net/mlx5/hws/mlx5dr_definer.h+2 -40 replies
17/23net/mlx5/hws: support GENEVE matchingdrivers/net/mlx5/hws/mlx5dr_definer.c drivers/net/mlx5/hws/mlx5dr_definer.h+110 -00 replies
18/23net/mlx5/hws: support GENEVE options headerdrivers/net/mlx5/hws/mlx5dr_definer.c drivers/net/mlx5/hws/mlx5dr_definer.h+165 -60 replies
19/23net/mlx5: add support for GENEVE and option item in HWSdoc/guides/nics/mlx5.rst doc/guides/rel_notes/release_24_03.rst drivers/net/mlx5/mlx5_flow.h +2 more+199 -70 replies
20/23net/mlx5: add GENEVE option support for profile 0doc/guides/nics/mlx5.rst doc/guides/platform/mlx5.rst drivers/net/mlx5/mlx5_flow_geneve.c+95 -340 replies
21/23net/mlx5: add GENEVE option support for group 0drivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5_flow.h drivers/net/mlx5/mlx5_flow_dv.c+12 -240 replies
22/23net/mlx5: add support for GENEVE VNI modify fielddoc/guides/nics/mlx5.rst doc/guides/rel_notes/release_24_03.rst drivers/net/mlx5/mlx5_flow_dv.c +1 more+17 -60 replies
23/23net/mlx5: add support for modify GENEVE option headerdoc/guides/nics/mlx5.rst doc/guides/rel_notes/release_24_03.rst drivers/net/mlx5/mlx5_flow.h +3 more+268 -260 replies

Reviews trailers per patch

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

PatchSuanming Mou
1/23A-b
2/23A-b
3/23A-b
4/23A-b
5/23A-b
6/23A-b
7/23A-b
8/23A-b
9/23A-b
10/23A-b
11/23A-b
12/23A-b
13/23A-b
14/23A-b
15/23A-b
16/23A-b
17/23A-b
18/23A-b
19/23A-b
20/23A-b
21/23A-b
22/23A-b
23/23A-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 [PATCH v2 00/23] net/mlx5: support Geneve and options for HWS

Add HWS support for both GENEVE and GENEVE TLV option headers. This patchset supports:

- Add HW support for "RTE_FLOW_ITEM_TYPE_GENEVE" flow item.
- Add HW support for "RTE_FLOW_ITEM_TYPE_GENEVE_OPT" flow item.
- Add HW support for "RTE_FLOW_FIELD_GENEVE_VNI" for modify field flow action.
- Add HW support for "RTE_FLOW_FIELD_GENEVE_OPT_TYPE" for modify field flow action.
- Add HW support for "RTE_FLOW_FIELD_GENEVE_OPT_CLASS" for modify field flow action.
- Add HW support for "RTE_FLOW_FIELD_GENEVE_OPT_DATA" for modify field flow action.

The GENEVE TLV options support using flex parser.
The profile should be specified to either 8 for multiple option or 0 for single option.
A new API is added to create the GENEVE option parser before using it in templates API.

v2:
- Rebase.
- Add "Acked-by" from v1.

Alex Vesker (4):
net/mlx5/hws: fix tunnel protocol checks net/mlx5/hws: increase hl size for future compatibility net/mlx5/hws: support GENEVE matching net/mlx5/hws: support GENEVE options header

Michael Baum (19):
common/mlx5: fix duplicate read of general capabilities common/mlx5: fix query sample info capability net/mlx5: remove GENEVE options length limitation net/mlx5: fix GENEVE option item translation common/mlx5: add system image GUID attribute common/mlx5: add GENEVE TLV option attribute structure common/mlx5: add PRM attribute for TLV sample common/mlx5: add sample info query syndrome into error log common/mlx5: query GENEVE option sample ID from HCA attr common/mlx5: add function to query GENEVE TLV option net/mlx5: add physical device handle
net/mlx5: add GENEVE TLV options parser API net/mlx5: add API to expose GENEVE option FW information net/mlx5: add testpmd support for GENEVE TLV parser net/mlx5: add support for GENEVE and option item in HWS net/mlx5: add GENEVE option support for profile 0 net/mlx5: add GENEVE option support for group 0 net/mlx5: add support for GENEVE VNI modify field net/mlx5: add support for modify GENEVE option header

 doc/guides/nics/mlx5.rst               |  251 +++++-
 doc/guides/platform/mlx5.rst           |    2 +
 doc/guides/rel_notes/release_24_03.rst |    9 +
 drivers/common/mlx5/mlx5_devx_cmds.c   |  139 +++-
 drivers/common/mlx5/mlx5_devx_cmds.h   |   29 +-
 drivers/common/mlx5/mlx5_prm.h         |   20 +-
 drivers/common/mlx5/version.map        |    1 +
 drivers/net/mlx5/hws/mlx5dr_definer.c  |  281 ++++++-
 drivers/net/mlx5/hws/mlx5dr_definer.h  |   49 +-
 drivers/net/mlx5/meson.build           |    1 +
 drivers/net/mlx5/mlx5.c                |  115 ++-
 drivers/net/mlx5/mlx5.h                |   21 +
 drivers/net/mlx5/mlx5_flow.c           |   30 +
 drivers/net/mlx5/mlx5_flow.h           |   92 ++-
 drivers/net/mlx5/mlx5_flow_dv.c        |  158 ++--
 drivers/net/mlx5/mlx5_flow_geneve.c    | 1011 ++++++++++++++++++++++++
 drivers/net/mlx5/mlx5_flow_hw.c        |  127 ++-
 drivers/net/mlx5/mlx5_testpmd.c        |  556 ++++++++++++-
 drivers/net/mlx5/rte_pmd_mlx5.h        |  102 +++
 drivers/net/mlx5/version.map           |    3 +
 20 files changed, 2811 insertions(+), 186 deletions(-)
 create mode 100644 drivers/net/mlx5/mlx5_flow_geneve.c
Signature · 1 line
2.25.1