Skip to content

net/mlx5/hws: support range and partial hash matching

Alex Vesker dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest16 patches 2 repliesIn review
  2. v116 patches 0 repliesSuperseded

Changes in v2 from the cover letter

-Fix missed checkpatch comments

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16net/mlx5/hws: support synchronous draindrivers/net/mlx5/hws/mlx5dr.h drivers/net/mlx5/hws/mlx5dr_pat_arg.c drivers/net/mlx5/hws/mlx5dr_send.c +2 more+28 -280 replies
2/16net/mlx5/hws: matcher remove AT and MT limitationdrivers/net/mlx5/hws/mlx5dr_debug.c drivers/net/mlx5/hws/mlx5dr_matcher.c drivers/net/mlx5/hws/mlx5dr_matcher.h +1 more+78 -580 replies
3/16net/mlx5/hws: support GTA WQE write using FW commanddrivers/common/mlx5/mlx5_prm.h drivers/net/mlx5/hws/mlx5dr_cmd.c drivers/net/mlx5/hws/mlx5dr_cmd.h+86 -10 replies
4/16net/mlx5/hws: add capability query for gen wqe commanddrivers/common/mlx5/mlx5_prm.h drivers/net/mlx5/hws/mlx5dr_cmd.c drivers/net/mlx5/hws/mlx5dr_cmd.h+19 -20 replies
5/16net/mlx5/hws: align RTC create command with PRM formatdrivers/common/mlx5/mlx5_prm.h drivers/net/mlx5/hws/mlx5dr_cmd.c drivers/net/mlx5/hws/mlx5dr_cmd.h +1 more+40 -190 replies
6/16net/mlx5/hws: add send FW match STE using gen WQEdrivers/net/mlx5/hws/mlx5dr_send.c drivers/net/mlx5/hws/mlx5dr_send.h+140 -10 replies
7/16net/mlx5/hws: add send FW range STE WQEdrivers/net/mlx5/hws/mlx5dr_send.c drivers/net/mlx5/hws/mlx5dr_send.h+22 -00 replies
8/16net/mlx5/hws: move matcher size check to functiondrivers/net/mlx5/hws/mlx5dr_matcher.c+27 -160 replies
9/16net/mlx5/hws: support range matchdrivers/net/mlx5/hws/mlx5dr_definer.c drivers/net/mlx5/hws/mlx5dr_definer.h+72 -60 replies
10/16net/mlx5/hws: redesign definer createdrivers/net/mlx5/hws/mlx5dr_definer.c drivers/net/mlx5/hws/mlx5dr_definer.h drivers/net/mlx5/hws/mlx5dr_internal.h +2 more+230 -1610 replies
11/16net/mlx5/hws: support partial hashdrivers/common/mlx5/mlx5_prm.h drivers/net/mlx5/hws/mlx5dr_definer.c drivers/net/mlx5/hws/mlx5dr_matcher.c +1 more+181 -40 replies
12/16net/mlx5/hws: add range definer creation supportdrivers/net/mlx5/hws/mlx5dr_definer.c drivers/net/mlx5/hws/mlx5dr_definer.h drivers/net/mlx5/hws/mlx5dr_matcher.c +1 more+281 -340 replies
13/16net/mlx5/hws: add FW WQE rule creation logicdrivers/net/mlx5/hws/mlx5dr_rule.c drivers/net/mlx5/hws/mlx5dr_rule.h drivers/net/mlx5/hws/mlx5dr_send.h+180 -110 replies
14/16net/mlx5/hws: add debug dump support for range and hashdrivers/net/mlx5/hws/mlx5dr_debug.c drivers/net/mlx5/hws/mlx5dr_debug.h+29 -120 replies
15/16net/mlx5/hws: rename pattern cache objectdrivers/net/mlx5/hws/mlx5dr_pat_arg.c drivers/net/mlx5/hws/mlx5dr_pat_arg.h+14 -140 replies
16/16net/mlx5/hws: cache definer for reusedrivers/net/mlx5/hws/mlx5dr_context.c drivers/net/mlx5/hws/mlx5dr_context.h drivers/net/mlx5/hws/mlx5dr_definer.c +1 more+130 -190 replies

Reviews trailers per patch

None of the 16 patches has a Reviewed-by or Acked-by.

PatchMatan Azrad
SeriesSeries-acked-by
1/16
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

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

Read the v2 thread

Cover letter [v2 00/16] net/mlx5/hws: support range and partial hash matching

ConnectX and BlueField devices which support HWS are capable of performing advanced match, range-match and hashing operations on packet headers. This patch-set introduces support for (1) range matching - allows combining range and exact match over provided item fields using spec, last and mask. A useful example for Range and exact match is matching exact IP and port range. This series also introduces (2) partial hash, which allows using the same matcher and performing partial hashing in case of multiple match templates are provided. The matcher create code finds the union and intersection fields to split the hash and match in a way the HW can support. This increases the match templates combinations possible although it may limit the maximum PPS. Since (1) and (2) are not fully support on current HW the implementation is done on top of a HW like FW API using WQEs.

v2:
-Fix missed checkpatch comments

Alex Vesker (16):
net/mlx5/hws: support synchronous drain net/mlx5/hws: matcher remove AT and MT limitation net/mlx5/hws: support GTA WQE write using FW command net/mlx5/hws: add capability query for gen wqe command net/mlx5/hws: align RTC create command with PRM format net/mlx5/hws: add send FW match STE using gen WQE net/mlx5/hws: add send FW range STE WQE net/mlx5/hws: move matcher size check to function net/mlx5/hws: support range match net/mlx5/hws: redesign definer create net/mlx5/hws: support partial hash net/mlx5/hws: add range definer creation support net/mlx5/hws: add FW WQE rule creation logic net/mlx5/hws: add debug dump support for range and hash net/mlx5/hws: rename pattern cache object net/mlx5/hws: cache definer for reuse

 drivers/common/mlx5/mlx5_prm.h         |  53 +-
 drivers/net/mlx5/hws/mlx5dr.h          |   6 +-
 drivers/net/mlx5/hws/mlx5dr_cmd.c      |  72 ++-
 drivers/net/mlx5/hws/mlx5dr_cmd.h      |  27 +-
 drivers/net/mlx5/hws/mlx5dr_context.c  |  12 +-
 drivers/net/mlx5/hws/mlx5dr_context.h  |   1 +
 drivers/net/mlx5/hws/mlx5dr_debug.c    |  41 +-
 drivers/net/mlx5/hws/mlx5dr_debug.h    |   4 +-
 drivers/net/mlx5/hws/mlx5dr_definer.c  | 750 +++++++++++++++++++++----
 drivers/net/mlx5/hws/mlx5dr_definer.h  |  44 +-
 drivers/net/mlx5/hws/mlx5dr_internal.h |   2 +-
 drivers/net/mlx5/hws/mlx5dr_matcher.c  | 279 ++++++---
 drivers/net/mlx5/hws/mlx5dr_matcher.h  |  43 +-
 drivers/net/mlx5/hws/mlx5dr_pat_arg.c  |  49 +-
 drivers/net/mlx5/hws/mlx5dr_pat_arg.h  |   6 +-
 drivers/net/mlx5/hws/mlx5dr_rule.c     | 193 ++++++-
 drivers/net/mlx5/hws/mlx5dr_rule.h     |   2 +
 drivers/net/mlx5/hws/mlx5dr_send.c     | 169 +++++-
 drivers/net/mlx5/hws/mlx5dr_send.h     |  24 +-
 drivers/net/mlx5/mlx5_flow_hw.c        |   2 +-
 20 files changed, 1475 insertions(+), 304 deletions(-)
Signature · 1 line
2.18.1