net/mlx5: ConnectX-8 SW Steering + Rate management on traffic classes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest7 patches 0 repliesNew
- v511 patches 20 repliesApplied
- v411 patches 4 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 8 patches | 7 replies | Superseded | |
| v2 | 8 patches | 5 replies | Superseded | |
| v1 | 8 patches | 1 reply | Superseded |
Changes in v6 from the cover letter
- Addressed comments on devlink patch #3.
- Removed first 4 IFC patches, to be pulled from mlx5-next.
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | net/mlx5: DR, expand SWS STE callbacks and consolidate common structsdrivers/ drivers/ drivers/ +4 more | +377 | 0 replies | |
| 2/7 | net/mlx5: DR, add support for ConnectX-8 steeringdrivers/ drivers/ drivers/ +4 more | +267 | 0 replies | |
| 3/7 | devlink: Extend devlink rate API with traffic classes bandwidth managementDocumentation/ include/ include/ +3 more | +175 | 0 replies | |
| 4/7 | net/mlx5: Add no-op implementation for setting tc-bw on rate objectsdrivers/ drivers/ drivers/ | +20 | 0 replies | |
| 5/7 | net/mlx5: Add support for setting tc-bw on nodesdrivers/ | +246 | 0 replies | |
| 6/7 | net/mlx5: Add traffic class scheduling support for vport QoSdrivers/ drivers/ | +352 | 0 replies | |
| 7/7 | net/mlx5: Manage TC arbiter nodes and implement full support for tc-bwdrivers/ | +180 | 0 replies |
Reviews trailers per patch
5 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Cosmin Ratiu | Jiri Pirko |
|---|---|---|
| 1/7 | ||
| 2/7 | ||
| 3/7 | R-b | R-b |
| 4/7 | R-b | |
| 5/7 | R-b | |
| 6/7 | R-b | |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next V6 0/7] net/mlx5: ConnectX-8 SW Steering + Rate management on traffic classes
Hi,
Welcome to V6.
The first 4 IFC patches were applied to mlx5-next, and need to be pulled before applying this series.
https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git/log/?h=mlx5-next
This patchset consists of two features:
1. In patches 1-2, Itamar adds SW Steering support for ConnectX-8.
2. Followed by patches by Carolina that add rate management support on traffic classes in devlink and mlx5, more details below [1].
Regards,
Tariq
V6:
- Addressed comments on devlink patch #3.
- Removed first 4 IFC patches, to be pulled from mlx5-next.
V5:
- Fix warning in devlink_nl_rate_tc_bw_set().
- Fix target branch of patch #4.
V4:
- Renamed the nested attribute for traffic class bandwidth to DEVLINK_ATTR_RATE_TC_BWS.
- Changed the order of the attributes in devlink.h.
- Refactored the initialization tc-bw array in devlink_nl_rate_tc_bw_set().
- Added extack messages to provide clear feedback on issues with tc-bw arguments.
- Updated rate-tc-bws to support a multi-attr set, where each attribute includes an index and the corresponding bandwidth for that traffic class.
- Handled the issue where the user could provide DEVLINK_ATTR_RATE_TC_BWS with duplicate indices.
- Provided ynl exmaples in devlink patch commit message.
- Take IFC patches to beginning of the series, targeted for mlx5-next.
V3:
- Dropped rate-tc-index, using tc-bw array index instead.
- Renamed rate-bw to rate-tc-bw.
- Documneted what the rate-tc-bw represents and added a range check for validation.
- Intorduced devlink_nl_rate_tc_bw_set() to parse and set the TC bandwidth values.
- Updated the user API in the commit message of patch 1/6 to ensure bandwidths sum equals 100.
- Fixed missing filling of rate-parent in devlink_nl_rate_fill().
V2:
- Included <linux/dcbnl.h> in devlink.h to resolve missing IEEE_8021QAZ_MAX_TCS definition.
- Refactored the rate-tc-bw attribute structure to use a separate rate-tc-index.
- Updated patch 2/6 title.
[1]
This patch series extends the devlink-rate API to support traffic class (TC) bandwidth management, enabling more granular control over traffic shaping and rate limiting across multiple TCs. The API now allows users to specify bandwidth proportions for different traffic classes in a single command. This is particularly useful for managing Enhanced Transmission Selection (ETS) for groups of Virtual Functions (VFs), allowing precise bandwidth allocation across traffic classes.
Additionally the series refines the QoS handling in net/mlx5 to support TC arbitration and bandwidth management on vports and rate nodes.
Extend devlink-rate API to support rate management on TCs:
- devlink: Extend the devlink rate API to support traffic class bandwidth management
Introduce a no-op implementation:
- net/mlx5: Add no-op implementation for setting tc-bw on rate objects
Add support for enabling and disabling TC QoS on vports and nodes:
- net/mlx5: Add support for setting tc-bw on nodes
- net/mlx5: Add traffic class scheduling support for vport QoS
Support for setting tc-bw on rate objects:
- net/mlx5: Manage TC arbiter nodes and implement full support for tc-bw
Carolina Jubran (5):
devlink: Extend devlink rate API with traffic classes bandwidth
management
net/mlx5: Add no-op implementation for setting tc-bw on rate objects net/mlx5: Add support for setting tc-bw on nodes
net/mlx5: Add traffic class scheduling support for vport QoS net/mlx5: Manage TC arbiter nodes and implement full support for tc-bw
Itamar Gozlan (2):
net/mlx5: DR, expand SWS STE callbacks and consolidate common structs net/mlx5: DR, add support for ConnectX-8 steering
Documentation/netlink/specs/devlink.yaml | 28 +- .../net/ethernet/mellanox/mlx5/core/Makefile | 1 + .../net/ethernet/mellanox/mlx5/core/devlink.c | 2 + .../net/ethernet/mellanox/mlx5/core/esw/qos.c | 795 +++++++++++++++++- .../net/ethernet/mellanox/mlx5/core/esw/qos.h | 4 + .../net/ethernet/mellanox/mlx5/core/eswitch.h | 13 +- .../mlx5/core/steering/sws/dr_domain.c | 2 +- .../mellanox/mlx5/core/steering/sws/dr_ste.c | 6 +- .../mellanox/mlx5/core/steering/sws/dr_ste.h | 19 +- .../mlx5/core/steering/sws/dr_ste_v0.c | 6 +- .../mlx5/core/steering/sws/dr_ste_v1.c | 207 +---- .../mlx5/core/steering/sws/dr_ste_v1.h | 147 +++- .../mlx5/core/steering/sws/dr_ste_v2.c | 169 +--- .../mlx5/core/steering/sws/dr_ste_v2.h | 168 ++++ .../mlx5/core/steering/sws/dr_ste_v3.c | 221 +++++ .../mlx5/core/steering/sws/mlx5_ifc_dr.h | 40 + .../mellanox/mlx5/core/steering/sws/mlx5dr.h | 2 +- include/net/devlink.h | 7 + include/uapi/linux/devlink.h | 4 + net/devlink/netlink_gen.c | 15 +- net/devlink/netlink_gen.h | 1 + net/devlink/rate.c | 125 +++ 22 files changed, 1605 insertions(+), 377 deletions(-) create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v2.h create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v3.c
Signature · 1 line
2.44.0