Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp725570pxb; Tue, 2 Feb 2021 16:48:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMQWrH790ZrLJvr28UlZG3NyDK1fGhZHbJ5FTQXV87l88q/X+wgIYCWk6VH2S7/Bg+Gb5s X-Received: by 2002:a17:906:5857:: with SMTP id h23mr573757ejs.465.1612313330914; Tue, 02 Feb 2021 16:48:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612313330; cv=none; d=google.com; s=arc-20160816; b=DYdVSVgOryrgCgMS+wcbgSqx/ej3uU+/ThM4t/sXAx1g1DTyin1gdTSDXGdByEAazd 6/7uf5vYQtgTuF647bcr+NUhRYvKQ7aIy1OWJFHiuombak7CGSkFTPP1wS+cQIOQWRVL b2xtBz5+jmK+wmh1k/42A/cluL9kUL9FD2o1Lu3UMkqq7G+IhF/QAHhW848223zVXQaI D2hbRhaMf8LiKQFMMrapcQz/WXJl8uQVCHueHpsZhEDo8YINv3RwCHa5li+UjysRP2Q4 p9xYQCA0FKrqDJQxKWX9jllDakeQpt19I74tBTR7jaQJ5i8DQvxwpVqwSF5YSmjxKDkP h0RA== 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=e8e2GRoiPHDIZAqcGVHg2XGKIOhmK3/sJXoWx3qOHEA=; b=j3z0ntEdJT4ueu4Emwwua04heRc1kz4OlIwQmd7ga6QN0rYcRVsqx+C6bf8xMJyW1l BIgxjVOeoMvnEiyYlskm4A5x/2BQmxgzvLZCz4do8w/Ydwq7IryJ+EYmVvHERtcnr5FM RhzvBO3qo/kKsv3eAVWU1pCpESVRbCdOkqzD/h+TI02EjDV6V+16SQwpPocewPcbZctn hPMG48aWkD6JddSQoZxOhN6nwmt8F84DepzcvaYKJ1I6ZQxE2z2vUB7n5fydBQReRx0n CmHHtTfgaoZrNA5m6KxW9xhayAG9b5sy6xqjMJXIUABxwN/YOE5a7GO7hRIvCySS1avR f+lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YP28ahaW; 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 by2si230971edb.143.2021.02.02.16.48.27; Tue, 02 Feb 2021 16:48:50 -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=YP28ahaW; 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 S233002AbhBBT5i (ORCPT + 99 others); Tue, 2 Feb 2021 14:57:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:38986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233049AbhBBNun (ORCPT ); Tue, 2 Feb 2021 08:50:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C673C64FB3; Tue, 2 Feb 2021 13:43:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612273386; bh=qFJWL4SW8VLmDS29+mCApETfCjzki6GttBb9RIFmqS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YP28ahaWFyv44/4n7eSDf+3+UR+fmT9Il2Cxqu0TMnPaLUkZXT6NHLVWWzE4vPYsM tJSinKrNbxZV14nbN5DBrXunMyk5tPghDFdzLjmABWTAEBM+o32jziymJHFFAbWRHd wK9EnQyYfboPmfnxqB8wSSunWV5eiIA+VParZiQY= 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 5.10 088/142] RDMA/cxgb4: Fix the reported max_recv_sge value Date: Tue, 2 Feb 2021 14:37:31 +0100 Message-Id: <20210202133001.334429433@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210202132957.692094111@linuxfoundation.org> References: <20210202132957.692094111@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 f20379e4e2ec2..5df4bb52bb10f 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -2471,7 +2471,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