]>
Commit | Line | Data |
---|---|---|
bb7155fd TL |
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | From: Maher Sanalla <msanalla@nvidia.com> | |
3 | Date: Sun, 24 Jul 2022 11:28:21 +0300 | |
4 | Subject: [PATCH] net/mlx5: Adjust log_max_qp to be 18 at most | |
5 | ||
6 | [ Upstream commit a6e9085d791f8306084fd5bc44dd3fdd4e1ac27b ] | |
7 | ||
8 | The cited commit limited log_max_qp to be 17 due to FW capabilities. | |
9 | Recently, it turned out that there are old FW versions that supported | |
10 | more than 17, so the cited commit caused a degradation. | |
11 | ||
12 | Thus, set the maximum log_max_qp back to 18 as it was before the | |
13 | cited commit. | |
14 | ||
15 | Fixes: 7f839965b2d7 ("net/mlx5: Update log_max_qp value to be 17 at most") | |
16 | Signed-off-by: Maher Sanalla <msanalla@nvidia.com> | |
17 | Reviewed-by: Maor Gottlieb <maorg@nvidia.com> | |
18 | Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> | |
19 | Signed-off-by: Sasha Levin <sashal@kernel.org> | |
20 | Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> | |
21 | --- | |
22 | drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 +- | |
23 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
24 | ||
25 | diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c | |
3ae8384f | 26 | index ef196cb764e2..2ad8027cb745 100644 |
bb7155fd TL |
27 | --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c |
28 | +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c | |
3ae8384f | 29 | @@ -526,7 +526,7 @@ static int handle_hca_cap(struct mlx5_core_dev *dev, void *set_ctx) |
bb7155fd TL |
30 | |
31 | /* Check log_max_qp from HCA caps to set in current profile */ | |
32 | if (prof->log_max_qp == LOG_MAX_SUPPORTED_QPS) { | |
33 | - prof->log_max_qp = min_t(u8, 17, MLX5_CAP_GEN_MAX(dev, log_max_qp)); | |
34 | + prof->log_max_qp = min_t(u8, 18, MLX5_CAP_GEN_MAX(dev, log_max_qp)); | |
35 | } else if (MLX5_CAP_GEN_MAX(dev, log_max_qp) < prof->log_max_qp) { | |
36 | mlx5_core_warn(dev, "log_max_qp value in current profile is %d, changing it to HCA capability limit (%d)\n", | |
37 | prof->log_max_qp, |