Skip to content

mlx5 technical debt of hairpin params

Saeed Mahameed netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Remove gerrit change-id tags

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net/mlx5e: Remove hairpin write debugfs filesdrivers/net/ethernet/mellanox/mlx5/core/en_tc.c+0 -590 replies
2/4net/mlx5: Move needed PTYS functions to core layerdrivers/net/ethernet/mellanox/mlx5/core/en/params.c drivers/net/ethernet/mellanox/mlx5/core/en/port.c drivers/net/ethernet/mellanox/mlx5/core/en/port.h +5 more+179 -1770 replies
3/4net/mlx5e: Add devlink hairpin queues parametersDocumentation/networking/device_drivers/ethernet/mellanox/mlx5/devlink.rst Documentation/networking/devlink/mlx5.rst drivers/net/ethernet/mellanox/mlx5/core/devlink.c +2 more+134 -311 reply
4/4net/mlx5e: Add more information to hairpin table dumpdrivers/net/ethernet/mellanox/mlx5/core/en_tc.c+6 -20 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchTariq Toukan
1/4
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 v2 thread

Cover letter [PATCH net-next V2 0/4] mlx5 technical debt of hairpin params

From: Saeed Mahameed <[email protected]>

Hi Jakub,

v1->v2:
- Remove gerrit change-id tags

As previously discussed, this series provides the switch from debugfs to devlink params for hairpin.

Per the discussion in [1], move the hairpin queues control (number and size) from debugfs to devlink.

Expose two devlink params:
- hairpin_num_queues: control the number of hairpin queues
- hairpin_queue_size: control the size (in packets) of the hairpin queues

[1] https://lore.kernel.org/all/[email protected]/

Disclaimer: I personally don't prefer devlink over debugfs, but since this is something that you requested, I'm submitting this series.

Sorry for the late submission, I know we are on merge window, and in case you don't plan to submit further pull requests to liuns, then maybe it's a good idea to take only the first patch (revert debugfs) and push it through your next net PR.

Thanks,
Saeed.

Gal Pressman (4):
net/mlx5e: Remove hairpin write debugfs files net/mlx5: Move needed PTYS functions to core layer net/mlx5e: Add devlink hairpin queues parameters net/mlx5e: Add more information to hairpin table dump

 .../ethernet/mellanox/mlx5/devlink.rst        |  35 ++++
 Documentation/networking/devlink/mlx5.rst     |  12 ++
 .../net/ethernet/mellanox/mlx5/core/devlink.c |  66 ++++++++
 .../net/ethernet/mellanox/mlx5/core/devlink.h |   2 +
 .../ethernet/mellanox/mlx5/core/en/params.c   |   2 +-
 .../net/ethernet/mellanox/mlx5/core/en/port.c | 157 +-----------------
 .../net/ethernet/mellanox/mlx5/core/en/port.h |  14 --
 .../ethernet/mellanox/mlx5/core/en_ethtool.c  |  12 +-
 .../net/ethernet/mellanox/mlx5/core/en_tc.c   | 117 +++----------
 .../net/ethernet/mellanox/mlx5/core/esw/qos.c |   2 +-
 .../net/ethernet/mellanox/mlx5/core/port.c    | 151 +++++++++++++++++
 include/linux/mlx5/port.h                     |  16 ++
 12 files changed, 318 insertions(+), 268 deletions(-)
Signature · 1 line
2.39.1