diff options
author | 2022-02-21 17:54:34 +0200 | |
---|---|---|
committer | 2022-02-23 16:08:19 -0800 | |
commit | ca49df96f9f5efd4f0f1e64f7c4c0c63a3329cb9 (patch) | |
tree | 77c532009dd2ccae56d7f280e516e355471c4eaa | |
parent | net/mlx5e: Add missing increment of count (diff) | |
download | linux-ca49df96f9f5efd4f0f1e64f7c4c0c63a3329cb9.tar.gz linux-ca49df96f9f5efd4f0f1e64f7c4c0c63a3329cb9.tar.bz2 linux-ca49df96f9f5efd4f0f1e64f7c4c0c63a3329cb9.zip |
net/mlx5e: Fix VF min/max rate parameters interchange mistake
The VF min and max rate were passed incorrectly and resulted in wrongly
interchanging them. Fix the order of parameters in
mlx5_esw_qos_set_vport_rate().
Fixes: d7df09f5e7b4 ("net/mlx5: E-switch, Enable vport QoS on demand")
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Aya Levin <ayal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c b/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c index 11bbcd5f5b8b..694c54066955 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c @@ -697,7 +697,7 @@ void mlx5_esw_qos_vport_disable(struct mlx5_eswitch *esw, struct mlx5_vport *vpo } int mlx5_esw_qos_set_vport_rate(struct mlx5_eswitch *esw, struct mlx5_vport *vport, - u32 min_rate, u32 max_rate) + u32 max_rate, u32 min_rate) { int err; |