Skip to content

net/mlx5e: CT: Add support for hardware steering

Tariq Toukan netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net/mlx5: HWS, rework the check if matcher size can be increaseddrivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc.c drivers/net/ethernet/mellanox/mlx5/core/steering/hws/matcher.c drivers/net/ethernet/mellanox/mlx5/core/steering/hws/matcher.h+25 -40 repliesApplied
2/4net/mlx5e: CT: Add initial support for Hardware Steeringdrivers/net/ethernet/mellanox/mlx5/core/Makefile drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_hmfs.c +1 more+71 -40 repliesApplied
3/4net/mlx5e: CT: Make mlx5_ct_fs_smfs_ct_validate_flow_rule reusabledrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_smfs.c drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h+82 -740 repliesApplied
4/4net/mlx5e: CT: Offload connections with hardware steering rulesdrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_hmfs.c+247 -20 repliesApplied

Reviews trailers per patch

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

PatchMark BlochJianbo Liu
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v1 thread

Cover letter [PATCH net-next 0/4] net/mlx5e: CT: Add support for hardware steering

This series start with one more HWS patch by Yevgeny, followed by patches that add support for connection tracking in hardware steering mode. It consists of:
- patch #2 hooks up the CT ops for the new mode in the right places.
- patch #3 moves a function into a common file, so it can be reused.
- patch #4 uses the HWS API to implement connection tracking.

The main advantage of hardware steering compared to software steering is vastly improved performance when adding/removing/updating rules. Using the T-Rex traffic generator to initiate multi-million UDP flows per second, a kernel running with these patches was able to offload ~600K unique UDP flows per second, a number around ~7x larger than software steering was able to achieve on the same hardware (256-thread AMD EPYC, 512 GB RAM, ConnectX 7 b2b).

Regards,
Tariq

Cosmin Ratiu (3):
net/mlx5e: CT: Add initial support for Hardware Steering net/mlx5e: CT: Make mlx5_ct_fs_smfs_ct_validate_flow_rule reusable net/mlx5e: CT: Offload connections with hardware steering rules

Yevgeny Kliteynik (1):
net/mlx5: HWS, rework the check if matcher size can be increased

 .../net/ethernet/mellanox/mlx5/core/Makefile  |   1 +
 .../ethernet/mellanox/mlx5/core/en/tc/ct_fs.h |  10 +
 .../mellanox/mlx5/core/en/tc/ct_fs_hmfs.c     | 292 ++++++++++++++++++
 .../mellanox/mlx5/core/en/tc/ct_fs_smfs.c     |  75 +----
 .../ethernet/mellanox/mlx5/core/en/tc_ct.c    |  88 +++++-
 .../ethernet/mellanox/mlx5/core/en/tc_ct.h    |  10 +
 .../mellanox/mlx5/core/steering/hws/bwc.c     |  18 +-
 .../mellanox/mlx5/core/steering/hws/matcher.c |   6 +-
 .../mellanox/mlx5/core/steering/hws/matcher.h |   5 +
 9 files changed, 423 insertions(+), 82 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_hmfs.c

base-commit: a833fb852e96c778bff1d14866f1db2c346b3d2e

Signature · 1 line
2.45.0