]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.10.7/net-mlx5-increase-number-of-max-qps-in-default-profile.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.10.7 / net-mlx5-increase-number-of-max-qps-in-default-profile.patch
CommitLineData
ad3041a8
GKH
1From foo@baz Mon Mar 27 18:18:08 CEST 2017
2From: Maor Gottlieb <maorg@mellanox.com>
3Date: Tue, 21 Mar 2017 15:59:17 +0200
4Subject: net/mlx5: Increase number of max QPs in default profile
5
6From: Maor Gottlieb <maorg@mellanox.com>
7
8
9[ Upstream commit 5f40b4ed975c26016cf41953b7510fe90718e21c ]
10
11With ConnectX-4 sharing SRQs from the same space as QPs, we hit a
12limit preventing some applications to allocate needed QPs amount.
13Double the size to 256K.
14
15Fixes: e126ba97dba9e ('mlx5: Add driver for Mellanox Connect-IB adapters')
16Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
17Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
18Signed-off-by: David S. Miller <davem@davemloft.net>
19Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20---
21 drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24--- a/drivers/net/ethernet/mellanox/mlx5/core/main.c
25+++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c
26@@ -87,7 +87,7 @@ static struct mlx5_profile profile[] = {
27 [2] = {
28 .mask = MLX5_PROF_MASK_QP_SIZE |
29 MLX5_PROF_MASK_MR_CACHE,
30- .log_max_qp = 17,
31+ .log_max_qp = 18,
32 .mr_cache[0] = {
33 .size = 500,
34 .limit = 250