]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Update log_max_qp value to be 17 at most
authorMaher Sanalla <msanalla@nvidia.com>
Wed, 16 Feb 2022 09:01:04 +0000 (11:01 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Feb 2022 00:08:12 +0000 (16:08 -0800)
commit3c04dea2429099b146e28ff5196939fbcc23980d
tree8b5aa300078d20c691c9bf4a7af871e72425e694
parentea4c3863a12045c5763c32f7b550b5f086555811
net/mlx5: Update log_max_qp value to be 17 at most

Currently, log_max_qp value is dependent on what FW reports as its max capability.
In reality, due to a bug, some FWs report a value greater than 17, even though they
don't support log_max_qp > 17.

This FW issue led the driver to exhaust memory on startup.
Thus, log_max_qp value is set to be no more than 17 regardless
of what FW reports, as it was before the cited commit.

Fixes: 3a777f66215b ("net/mlx5: Update log_max_qp value to FW max capability")
Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Avihai Horon <avihaih@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c