Skip to content

net/mlx5: qos: Refactor esw qos to support new features

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 Latest14 patches 0 repliesApplied 14/14

Patches in v1 All 14 applied

#Subject and filesSizeRepliesApplied
1/14net/mlx5: qos: Flesh out element_attributes in mlx5_ifc.hdrivers/net/ethernet/mellanox/mlx5/core/esw/qos.c include/linux/mlx5/mlx5_ifc.h+45 -400 repliesApplied
2/14net/mlx5: qos: Rename vport 'tsar' into 'sched_elem'.drivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c drivers/net/ethernet/mellanox/mlx5/core/eswitch.h+27 -300 repliesApplied
3/14net/mlx5: qos: Consistently name vport vars as 'vport'drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c+24 -240 repliesApplied
4/14net/mlx5: qos: Refactor and document bw_share calculationdrivers/net/ethernet/mellanox/mlx5/core/esw/qos.c drivers/net/ethernet/mellanox/mlx5/core/eswitch.h+71 -660 repliesApplied
5/14net/mlx5: qos: Maintain rate group vport members in a listdrivers/net/ethernet/mellanox/mlx5/core/esw/qos.c drivers/net/ethernet/mellanox/mlx5/core/eswitch.h+58 -370 repliesApplied
6/14net/mlx5: qos: Always create group0drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c drivers/net/ethernet/mellanox/mlx5/core/eswitch.h+30 -180 repliesApplied
7/14net/mlx5: qos: Drop 'esw' param from vport qos functionsdrivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c drivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c +4 more+57 -600 repliesApplied
8/14net/mlx5: qos: Store the eswitch in a mlx5_esw_rate_groupdrivers/net/ethernet/mellanox/mlx5/core/esw/qos.c+52 -630 repliesApplied
9/14net/mlx5: qos: Add an explicit 'dev' to vport trace callsdrivers/net/ethernet/mellanox/mlx5/core/esw/diag/qos_tracepoint.h drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c+16 -130 repliesApplied
10/14net/mlx5: qos: Rename rate group 'list' as 'parent_entry'drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c+5 -50 repliesApplied
11/14net/mlx5: qos: Store rate groups in a qos domaindrivers/net/ethernet/mellanox/mlx5/core/esw/qos.c drivers/net/ethernet/mellanox/mlx5/core/esw/qos.h drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +1 more+65 -110 repliesApplied
12/14net/mlx5: qos: Refactor locking to a qos domain mutexdrivers/net/ethernet/mellanox/mlx5/core/esw/legacy.c drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c drivers/net/ethernet/mellanox/mlx5/core/esw/qos.h +2 more+74 -390 repliesApplied
13/14net/mlx5: Unify QoS element type checks across NIC and E-Switchdrivers/net/ethernet/mellanox/mlx5/core/esw/qos.c drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h drivers/net/ethernet/mellanox/mlx5/core/qos.c +1 more+44 -230 repliesApplied
14/14net/mlx5: Add support check for TSAR types in QoS schedulingdrivers/net/ethernet/mellanox/mlx5/core/esw/qos.c drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h drivers/net/ethernet/mellanox/mlx5/core/qos.c +1 more+34 -20 repliesApplied

Reviews trailers per patch

1 of 14 patches has a Reviewed-by or Acked-by.

PatchCarolina Jubran
1/14
2/14
3/14
4/14
5/14
6/14
7/14R-b
8/14
9/14
10/14
11/14
12/14
13/14
14/14

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 00/14] net/mlx5: qos: Refactor esw qos to support new features

Hi,

This patch series by Cosmin and Carolina prepares the mlx5 qos infra for the upcoming feature of cross E-Switch scheduling.

Noop cleanups:
net/mlx5: qos: Flesh out element_attributes in mlx5_ifc.h net/mlx5: qos: Rename vport 'tsar' into 'sched_elem'. net/mlx5: qos: Consistently name vport vars as 'vport' net/mlx5: qos: Refactor and document bw_share calculation net/mlx5: qos: Rename rate group 'list' as 'parent_entry'

Refactor the code with the goal of moving groups out of E-Switches:
net/mlx5: qos: Maintain rate group vport members in a list net/mlx5: qos: Always create group0
net/mlx5: qos: Drop 'esw' param from vport qos functions net/mlx5: qos: Store the eswitch in a mlx5_esw_rate_group

Move groups from an E-Switch into an mlx5_qos_domain:
net/mlx5: qos: Store rate groups in a qos domain

Refactor locking to use a new mutex in the qos domain:
net/mlx5: qos: Refactor locking to a qos domain mutex

In follow-up patchsets, we'll allow qos domains to be shared between E-Switches of the same NIC.

The two top patches are simple enhancements.

Series generated against:
commit f95b4725e796 ("net: phy: mxl-gpy: add missing support for TRIGGER_NETDEV_LINK_10")

Regards,
Tariq

Carolina Jubran (2):
net/mlx5: Unify QoS element type checks across NIC and E-Switch net/mlx5: Add support check for TSAR types in QoS scheduling

Cosmin Ratiu (12):
net/mlx5: qos: Flesh out element_attributes in mlx5_ifc.h net/mlx5: qos: Rename vport 'tsar' into 'sched_elem'. net/mlx5: qos: Consistently name vport vars as 'vport' net/mlx5: qos: Refactor and document bw_share calculation net/mlx5: qos: Maintain rate group vport members in a list net/mlx5: qos: Always create group0
net/mlx5: qos: Drop 'esw' param from vport qos functions net/mlx5: qos: Store the eswitch in a mlx5_esw_rate_group net/mlx5: qos: Add an explicit 'dev' to vport trace calls net/mlx5: qos: Rename rate group 'list' as 'parent_entry' net/mlx5: qos: Store rate groups in a qos domain net/mlx5: qos: Refactor locking to a qos domain mutex

 .../mellanox/mlx5/core/esw/devlink_port.c     |   4 +-
 .../mlx5/core/esw/diag/qos_tracepoint.h       |  39 +-
 .../ethernet/mellanox/mlx5/core/esw/legacy.c  |   6 +-
 .../net/ethernet/mellanox/mlx5/core/esw/qos.c | 668 ++++++++++--------
 .../net/ethernet/mellanox/mlx5/core/esw/qos.h |   9 +-
 .../net/ethernet/mellanox/mlx5/core/eswitch.c |  22 +-
 .../net/ethernet/mellanox/mlx5/core/eswitch.h |  32 +-
 .../mellanox/mlx5/core/eswitch_offloads.c     |   4 +-
 .../ethernet/mellanox/mlx5/core/mlx5_core.h   |   2 +
 drivers/net/ethernet/mellanox/mlx5/core/qos.c |  12 +-
 drivers/net/ethernet/mellanox/mlx5/core/rl.c  |  58 ++
 include/linux/mlx5/mlx5_ifc.h                 |  67 +-
 12 files changed, 547 insertions(+), 376 deletions(-)
Signature · 1 line
2.44.0