net/mlx5: qos: Refactor esw qos to support new features
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
Patches in v1 All 14 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | net/mlx5: qos: Flesh out element_attributes in mlx5_ifc.hdrivers/ include/ | +45 | 0 replies | Applied |
| 2/14 | net/mlx5: qos: Rename vport 'tsar' into 'sched_elem'.drivers/ drivers/ drivers/ | +27 | 0 replies | Applied |
| 3/14 | net/mlx5: qos: Consistently name vport vars as 'vport'drivers/ | +24 | 0 replies | Applied |
| 4/14 | net/mlx5: qos: Refactor and document bw_share calculationdrivers/ drivers/ | +71 | 0 replies | Applied |
| 5/14 | net/mlx5: qos: Maintain rate group vport members in a listdrivers/ drivers/ | +58 | 0 replies | Applied |
| 6/14 | net/mlx5: qos: Always create group0drivers/ drivers/ | +30 | 0 replies | Applied |
| 7/14 | net/mlx5: qos: Drop 'esw' param from vport qos functionsdrivers/ drivers/ drivers/ +4 more | +57 | 0 replies | Applied |
| 8/14 | net/mlx5: qos: Store the eswitch in a mlx5_esw_rate_groupdrivers/ | +52 | 0 replies | Applied |
| 9/14 | net/mlx5: qos: Add an explicit 'dev' to vport trace callsdrivers/ drivers/ | +16 | 0 replies | Applied |
| 10/14 | net/mlx5: qos: Rename rate group 'list' as 'parent_entry'drivers/ | +5 | 0 replies | Applied |
| 11/14 | net/mlx5: qos: Store rate groups in a qos domaindrivers/ drivers/ drivers/ +1 more | +65 | 0 replies | Applied |
| 12/14 | net/mlx5: qos: Refactor locking to a qos domain mutexdrivers/ drivers/ drivers/ +2 more | +74 | 0 replies | Applied |
| 13/14 | net/mlx5: Unify QoS element type checks across NIC and E-Switchdrivers/ drivers/ drivers/ +1 more | +44 | 0 replies | Applied |
| 14/14 | net/mlx5: Add support check for TSAR types in QoS schedulingdrivers/ drivers/ drivers/ +1 more | +34 | 0 replies | Applied |
Reviews trailers per patch
1 of 14 patches has a Reviewed-by or Acked-by.
| Patch | Carolina Jubran |
|---|---|
| 1/14 | |
| 2/14 | |
| 3/14 | |
| 4/14 | |
| 5/14 | |
| 6/14 | |
| 7/14 | R-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.
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