net/mlx5: Refactor esw QoS to support generalized operations
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 · linked by author and title
- v3 Latest15 patches 6 repliesApplied 15/15
- v215 patches 2 repliesSuperseded
- v115 patches 6 repliesSuperseded
Changes in v3 from the cover letter
- Fixed potential NULL dereference for vport sched_node.
- Updated the check in esw_qos_normalize_min_rate to stop on leafs.
Patches in v3 All 15 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | net/mlx5: Refactor QoS group scheduling element creationdrivers/ | +31 | 1 reply | Applied |
| 2/15 | net/mlx5: Introduce node type to rate group structuredrivers/ | +18 | 1 reply | Applied |
| 3/15 | net/mlx5: Add parent group support in rate group structuredrivers/ | +11 | 1 reply | Applied |
| 4/15 | net/mlx5: Restrict domain list insertion to root TSAR ancestorsdrivers/ | +4 | 1 reply | Applied |
| 5/15 | net/mlx5: Rename vport QoS group reference to parentdrivers/ drivers/ drivers/ | +29 | 1 reply | Applied |
| 6/15 | net/mlx5: Introduce node struct and rename group terminology to nodedrivers/ drivers/ drivers/ +1 more | +217 | 1 reply | Applied |
| 7/15 | net/mlx5: Refactor vport scheduling element creation functiondrivers/ | +15 | 0 replies | Applied |
| 8/15 | net/mlx5: Refactor vport QoS to use scheduling node structuredrivers/ drivers/ drivers/ +2 more | +110 | 0 replies | Applied |
| 9/15 | net/mlx5: Remove vport QoS enabled flagdrivers/ drivers/ | +6 | 0 replies | Applied |
| 10/15 | net/mlx5: Simplify QoS scheduling element configurationdrivers/ | +40 | 0 replies | Applied |
| 11/15 | net/mlx5: Generalize QoS operations for nodes and vportsdrivers/ | +43 | 0 replies | Applied |
| 12/15 | net/mlx5: Add sync reset drop mode supportdrivers/ | +8 | 0 replies | Applied |
| 13/15 | net/mlx5: Only create VEPA flow table when in VEPA modedrivers/ | +13 | 0 replies | Applied |
| 14/15 | net/mlx5: fs, rename packet reformat struct member actiondrivers/ drivers/ | +14 | 0 replies | Applied |
| 15/15 | net/mlx5: fs, rename modify header struct member actiondrivers/ drivers/ drivers/ | +10 | 0 replies | Applied |
Reviews trailers per patch
All 15 patches have a Reviewed-by or Acked-by.
| Patch | Cosmin Ratiu | Saeed Mahameed | Yevgeny Kliteynik | Aya Levin | Daniel Machon |
|---|---|---|---|---|---|
| 1/15 | R-b | R-b | |||
| 2/15 | R-b | R-b | |||
| 3/15 | R-b | R-b | |||
| 4/15 | R-b | R-b | |||
| 5/15 | R-b | R-b | |||
| 6/15 | R-b | R-b | |||
| 7/15 | R-b | ||||
| 8/15 | R-b | ||||
| 9/15 | R-b | ||||
| 10/15 | R-b | ||||
| 11/15 | R-b | ||||
| 12/15 | R-b | ||||
| 13/15 | R-b | R-b | |||
| 14/15 | R-b | ||||
| 15/15 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH net-next V3 00/15] net/mlx5: Refactor esw QoS to support generalized operations
Hi,
This patch series from the team to mlx5 core driver consists of one main QoS part followed by small misc patches.
This main part (patches 1 to 11) by Carolina refactors the QoS handling to generalize operations on scheduling groups and vports. These changes are necessary to support new features that will extend group functionality, introduce new group types, and support deeper hierarchies.
Additionally, this refactor updates the terminology from "group" to "node" to better reflect the hardware’s rate hierarchy and its use of scheduling element nodes.
Simplify group scheduling element creation:
- net/mlx5: Refactor QoS group scheduling element creation
Refactor to support generalized operations for QoS:
- net/mlx5: Introduce node type to rate group structure
- net/mlx5: Add parent group support in rate group structure
- net/mlx5: Restrict domain list insertion to root TSAR ancestors
- net/mlx5: Rename vport QoS group reference to parent
- net/mlx5: Introduce node struct and rename group terminology to node
- net/mlx5: Refactor vport scheduling element creation function
- net/mlx5: Refactor vport QoS to use scheduling node structure
- net/mlx5: Remove vport QoS enabled flag
Support generalized operations for QoS elements:
- net/mlx5: Simplify QoS scheduling element configuration
- net/mlx5: Generalize QoS operations for nodes and vports
On top, patch 12 by Moshe handles FW request to move to drop mode.
In patch 13, Benjamin Poirier removes an empty eswitch flow table when not used, which improves packet processing performance.
Patches 14 and 15 by Moshe are small field renamings as preparation for future fields addition to these structures.
Series generated against:
commit c531f2269a53 ("net: bcmasp: enable SW timestamping")
Regards,
Tariq
V3:
- Fixed potential NULL dereference for vport sched_node.
- Updated the check in esw_qos_normalize_min_rate to stop on leafs.
V2:
- Declared int err separately to fix the type mismatch with u32.
- Fixed potential NULL dereference in the node allocation error path.
- Removed "rate_node" renamings, as it referred to the old "rate_group".
- Replaced 0 with NULL in mlx5_esw_qos_vport_get_parent.
- Fixed vport node allocation error path.
- Initialized dev in mlx5_esw_qos_vport_disable.
- Access vport_node->esw directly where possible.
Benjamin Poirier (1):
net/mlx5: Only create VEPA flow table when in VEPA mode
Carolina Jubran (11):
net/mlx5: Refactor QoS group scheduling element creation net/mlx5: Introduce node type to rate group structure net/mlx5: Add parent group support in rate group structure net/mlx5: Restrict domain list insertion to root TSAR ancestors net/mlx5: Rename vport QoS group reference to parent net/mlx5: Introduce node struct and rename group terminology to node net/mlx5: Refactor vport scheduling element creation function net/mlx5: Refactor vport QoS to use scheduling node structure net/mlx5: Remove vport QoS enabled flag
net/mlx5: Simplify QoS scheduling element configuration net/mlx5: Generalize QoS operations for nodes and vports
Moshe Shemesh (3):
net/mlx5: Add sync reset drop mode support net/mlx5: fs, rename packet reformat struct member action net/mlx5: fs, rename modify header struct member action
.../mellanox/mlx5/core/en/tc/ct_fs_smfs.c | 4 +- .../mellanox/mlx5/core/esw/devlink_port.c | 2 +- .../mlx5/core/esw/diag/qos_tracepoint.h | 53 +- .../ethernet/mellanox/mlx5/core/esw/legacy.c | 27 +- .../net/ethernet/mellanox/mlx5/core/esw/qos.c | 669 +++++++++--------- .../net/ethernet/mellanox/mlx5/core/esw/qos.h | 3 + .../net/ethernet/mellanox/mlx5/core/eswitch.c | 2 + .../net/ethernet/mellanox/mlx5/core/eswitch.h | 25 +- .../net/ethernet/mellanox/mlx5/core/fs_core.h | 4 +- .../ethernet/mellanox/mlx5/core/fw_reset.c | 9 +- .../mellanox/mlx5/core/steering/fs_dr.c | 35 +- 11 files changed, 435 insertions(+), 398 deletions(-)
Signature · 1 line
2.44.0