]> git.baikalelectronics.ru Git - 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)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 1 Dec 2021 06:35:04 +0000 (22:35 -0800)
commitadc5f73cd76c66495e6ab9f91a0672d3eb7e1468
treef2e8d1556aafe6c46bf8d1d0a767a8f8b614e3d7
parentab2e3bb74f7d2af35c0ea31f8d8464cf39a23e69
net/mlx5: E-switch, Respect BW share of the new group

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: f6b97bcb1b0d ("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>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c