net/mlx5e: Enforce minimum value check for ICOSQ size
authorTariq Toukan <tariqt@nvidia.com>
Tue, 12 Jan 2021 11:29:14 +0000 (13:29 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 10 Mar 2021 19:01:51 +0000 (11:01 -0800)
commit5115daa675ccf70497fe56e8916cf738d8212c10
tree5ddce840ca1b756dfb6fba99303386cc42f0abc8
parent05a59d79793d482f628a31753c671f2e92178a21
net/mlx5e: Enforce minimum value check for ICOSQ size

The ICOSQ size should not go below MLX5E_PARAMS_MINIMUM_LOG_SQ_SIZE.
Enforce this where it's missing.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c