net/mlx5e: Report zero bandwidth for non-ETS traffic classes
authorAlexei Lazar <alazar@nvidia.com>
Fri, 17 Jul 2026 07:51:24 +0000 (10:51 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Jul 2026 15:24:52 +0000 (08:24 -0700)
commitffb1873b2df11945b8c395e859169248675c91c5
tree0c68d1b90e3b53964a5f09ad54163997280a1c93
parentdef9a4745e105145133e442dd8a1c126caf0f553
net/mlx5e: Report zero bandwidth for non-ETS traffic classes

The IEEE 802.1Qaz standard defines that bandwidth allocation percentages
only apply to Enhanced Transmission Selection (ETS) traffic classes.
For STRICT and VENDOR transmission selection algorithms, bandwidth
percentage values are not applicable.

Currently for non-ETS 100 bandwidth is being reported for all traffic
classes in the get operation due to hardware limitation, regardless of
their TSA type.

Fix this by reporting 0 for non-ETS traffic classes.

Fixes: 820c2c5e773d ("net/mlx5e: Read ETS settings directly from firmware")
Signed-off-by: Alexei Lazar <alazar@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20260717075125.1244877-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c