Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932617AbcCBA06 (ORCPT ); Tue, 1 Mar 2016 19:26:58 -0500 Received: from mail333.us4.mandrillapp.com ([205.201.137.77]:58676 "EHLO mail333.us4.mandrillapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932228AbcCAX5i (ORCPT ); Tue, 1 Mar 2016 18:57:38 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mandrill; d=linuxfoundation.org; b=E8iEdez94SOGPgy3i8IJeh3j6PYG3izlh6CwDdQJKY/d3MCmLCkdsbenEhNDL8Qx7USwHrSx/UDB gVVJAtwu1sW/sU9rSuE6o7MkIqMjpprRhmToMpucGrrsqk0+sUhrXcMoPkpz2UtKQ3vRzg2H6iR9 pQTZgF4fF6UyzSNeF4M=; From: Greg Kroah-Hartman Subject: [PATCH 4.4 253/342] IB/mlx5: Expose correct maximum number of CQE capacity X-Mailer: git-send-email 2.7.2 To: Cc: Greg Kroah-Hartman , , Leon Romanovsky , Sagi Grimberg , Doug Ledford Message-Id: <20160301234536.086034403@linuxfoundation.org> In-Reply-To: <20160301234527.990448862@linuxfoundation.org> References: <20160301234527.990448862@linuxfoundation.org> X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30481620.d6c48c4092714335a7b6d9eab2fa154e X-Mandrill-User: md_30481620 Date: Tue, 01 Mar 2016 23:55:08 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1272 Lines: 32 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Leon Romanovsky commit 9f17768611ebf81dfac69948dd12622b6f2e45fc upstream. Maximum number of EQE capacity per CQ was mistakenly exposed as CQE. Fix that. Fixes: 938fe83c8dcb ("net/mlx5_core: New device capabilities handling") Signed-off-by: Leon Romanovsky Reviewed-by: Sagi Grimberg Signed-off-by: Doug Ledford Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/hw/mlx5/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -275,7 +275,7 @@ static int mlx5_ib_query_device(struct i props->max_sge = min(max_rq_sg, max_sq_sg); props->max_sge_rd = props->max_sge; props->max_cq = 1 << MLX5_CAP_GEN(mdev, log_max_cq); - props->max_cqe = (1 << MLX5_CAP_GEN(mdev, log_max_eq_sz)) - 1; + props->max_cqe = (1 << MLX5_CAP_GEN(mdev, log_max_cq_sz)) - 1; props->max_mr = 1 << MLX5_CAP_GEN(mdev, log_max_mkey); props->max_pd = 1 << MLX5_CAP_GEN(mdev, log_max_pd); props->max_qp_rd_atom = 1 << MLX5_CAP_GEN(mdev, log_max_ra_req_qp);