]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net/mlx5: E-switch, Respect BW share of the new group
authorDmytro Linkin <dlinkin@nvidia.com>
Tue, 21 Sep 2021 12:47:33 +0000 (15:47 +0300)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 9 Dec 2021 10:10:46 +0000 (11:10 +0100)
commit4ac7e82cd00366f5ad54a4f5e30aef79be29b012
treedac8ffdf814644f8609bd74ea24823d515d19b42
parent57bf00ac27c386b7ee617e396305596322fec1bc
net/mlx5: E-switch, Respect BW share of the new group

BugLink: https://bugs.launchpad.net/bugs/1953731
[ Upstream commit 1e59b32e45e47c8ea5455182286ba010bfa87813 ]

To enable transmit schduler on vport FW require non-zero configuration
for vport's TSAR. If vport added to the group which has configured BW
share value and TX rate values of the vport are zero, then scheduler
wouldn't be enabled on this vport.
Fix that by calling BW normalization if BW share of the new group is
configured.

Fixes: 0fe132eac38c ("net/mlx5: E-switch, Allow to add vports to rate groups")
Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c