Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp718602pxb; Tue, 2 Feb 2021 16:35:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4T4/IZV/l06Vf2nMKdZ3u+5MBjTe5a8rJzQNPaiiFgtRMpZxWJf6++c5Xu3JqtfcI31q6 X-Received: by 2002:a05:6402:1648:: with SMTP id s8mr643021edx.50.1612312525667; Tue, 02 Feb 2021 16:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612312525; cv=none; d=google.com; s=arc-20160816; b=CVVhv/+N2d4F1BuFQsSdbpj0caYlZxUUBApHyUeQB3/lrvY7mNGcgSUixfmRlEJfFF w1V7Vgctr0gik53VTM0ZWnlLoC5enM/xtiEYUu7Tc/in7/EHGKxcKMWzFlv9NXGY/x4u e0aj1NarPThkaC+x54G/xpZBHfIg8bd9LrgYpFiF2gF6XcRju7T3QIOz/uoOZGBYUkvT SK9BX3Rt4zpqr6hyy2dQ4/OcR6AVFsgU/nFYrUg50lIt1CianbhOHgcuVGqVXlff2n2R 62XjAN8WovbWw2sJUQyD4RcOsgaYK8RDg8/cA6U7F4kxv2E/ifLmihM/Oui0Wo/8kMHZ Ga6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NHUO7CSnGdI60SVzGIYi1ulyP0q5mlcPWwQ9lFH90Jk=; b=adjttzvpzIfhyx+f/uikE+5L0Jfr1CxheLeeZuo4xOlRb7aplvjm3blllNQ27WSFNg 2o94igtsELX3UpXgyjLJqnFFY7mSXAbz4FkzjBPxgEGpAWgQX79wrDobygh7slvLHkgl UDvS+0kyRHGf6yy5DCZ9NmsfhO2riOdl2Yqgf/JfYSPnNOV5Olhrr61G6TK5jSL/Ti6z fnyOQofZlOhOAJNOw9nlWaTp5LHoISwF9ya0DDU50xcT0z9zFl1Gv9VKz8HijMwdAYHr f14eLdpm7joM0q0I/xIiJnwJfXh9YZZqqjQC7ASARGPguYcF4QlGSJnpkonMkf2VnuqH IQTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xO9sV8Nt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o15si278335ejx.665.2021.02.02.16.35.01; Tue, 02 Feb 2021 16:35:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xO9sV8Nt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238456AbhBBSSV (ORCPT + 99 others); Tue, 2 Feb 2021 13:18:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:46998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233669AbhBBOGd (ORCPT ); Tue, 2 Feb 2021 09:06:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0FA0864F94; Tue, 2 Feb 2021 13:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612273768; bh=fev1EVMzBxG4ufi85k7jTzo7x01EkX27Ibas1SKPfbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xO9sV8NtSKgYsO0OBLjAEiYyspH6awlcU3PhNmqAg4Y73Ge7SfPZactqP+GN3iwOm rxGF50kb5768FkvDtmi2tBqcuERkVHSZjtAdJ2eOcR2uZbaq9Bd2mnE5hiH18uQALL tSFtXLDa+jTuvAM5Ci3Jj1pUK4H59kqrjW/u3D0w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kamal Heib , Potnuri Bharat Teja , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.4 22/28] RDMA/cxgb4: Fix the reported max_recv_sge value Date: Tue, 2 Feb 2021 14:38:42 +0100 Message-Id: <20210202132942.070018157@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210202132941.180062901@linuxfoundation.org> References: <20210202132941.180062901@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kamal Heib [ Upstream commit a372173bf314d374da4dd1155549d8ca7fc44709 ] The max_recv_sge value is wrongly reported when calling query_qp, This is happening due to a typo when assigning the max_recv_sge value, the value of sq_max_sges was assigned instead of rq_max_sges. Fixes: 3e5c02c9ef9a ("iw_cxgb4: Support query_qp() verb") Link: https://lore.kernel.org/r/20210114191423.423529-1-kamalheib1@gmail.com Signed-off-by: Kamal Heib Reviewed-by: Potnuri Bharat Teja Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/cxgb4/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 04206c600098f..07579e31168c5 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -1898,7 +1898,7 @@ int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, init_attr->cap.max_send_wr = qhp->attr.sq_num_entries; init_attr->cap.max_recv_wr = qhp->attr.rq_num_entries; init_attr->cap.max_send_sge = qhp->attr.sq_max_sges; - init_attr->cap.max_recv_sge = qhp->attr.sq_max_sges; + init_attr->cap.max_recv_sge = qhp->attr.rq_max_sges; init_attr->cap.max_inline_data = T4_MAX_SEND_INLINE; init_attr->sq_sig_type = qhp->sq_sig_all ? IB_SIGNAL_ALL_WR : 0; return 0; -- 2.27.0