Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp228776pxx; Wed, 28 Oct 2020 03:28:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwadau+05yw0tHXT6irGQ9VAKoGA7J6jYf7j5bs1y7C+KuXiOGM4IaPJqVZhT3I1bs7+P9P X-Received: by 2002:aa7:d28c:: with SMTP id w12mr6987026edq.248.1603880890323; Wed, 28 Oct 2020 03:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603880890; cv=none; d=google.com; s=arc-20160816; b=itV2uca45gFtJVRpkFAs75umBuSHM3J4P4sPnQqQ36Xg3IBSxHkx6mUMv1zgIHIAlx dbeIUG0EWCiZ7wAZur2C3meE9qGS49NNUXRnzVCvGfrA2LTJD4b/AanVVxXA4KNGJ8jE IzzqmUFdzeIqYmDhJWeWbVevbJdxfwRwJgtIHtyT/y17lvpGQAmY/v6Pb0w/35s1C9vV zvbHd2tXpAGM3S+L/V2e7qt7g8z3Ud+RQEqoQssmHzEpke8LSBhi2NDjF5E3qZ5ROdUP 6CoWXLmF/lrjzsrWVAbyfnbNG5eqjJ+lKxOWkm7VgxrlpXwAS7VT12QSJpECmgUGGwZp qf6g== 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=ZokWhhNzUY3FbfFmGfDUgd3D+76WsvRotSUW53c/99M=; b=lV6136Nsalynfm0gS7EAkhRWBPzMDZLsqmc/s+BjwHVoRWackEz/kZgHjAoTjnmzbH lKZeR+0bELTngwJih9pcUttZ9K65sVx4+53pJJ4XxW1z4OfRsVv+/+CvOiTgRM0fBU6w pH9S/lDwHjZExD+45zu401Js/N6fvNCNSu8QOwE0FVDb6mstikSdIkrhno1qMpI/e0ZQ bqt2NtpetrX+vmAdWeYNnv1eOS1AGxWavKZU6oYABpzml4nuJBsxQ8UvMUoLgYHS/O4X ptdi949VryrqkIkNk9uDQ6TSJkv4rHJRmYstv4L/RT4XWMc5LBrFhBrvNyWNCSas+qrI J3Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yKimP26w; 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=fail (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 b6si3402013edu.343.2020.10.28.03.27.48; Wed, 28 Oct 2020 03:28:10 -0700 (PDT) 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=@kernel.org header.s=default header.b=yKimP26w; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762238AbgJ0Olg (ORCPT + 99 others); Tue, 27 Oct 2020 10:41:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:39144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761454AbgJ0Ojw (ORCPT ); Tue, 27 Oct 2020 10:39:52 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3287121D7B; Tue, 27 Oct 2020 14:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809591; bh=C1kyShctg4m/uugNKHHDmF5dIsTk9/2TrhpunOxgmag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yKimP26wVTPYFU7o4jPz/XDxoZgLSL7hCYKsVLsGTKHP+sI4XWdEwk2DWGbfBL/Q2 uYe7lmjG2ZnpoimHViLkP/BQ32ORdaqdBRnx9IJb6+H/o3UAjA5pG892Ay1wQpii9Y 0fwf6oIdJxr71nNfHdkk7EtjmruYaKCW+spv/zYU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michal Kalderon , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.4 221/408] RDMA/qedr: Fix inline size returned for iWARP Date: Tue, 27 Oct 2020 14:52:39 +0100 Message-Id: <20201027135505.337900488@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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: Michal Kalderon [ Upstream commit fbf58026b2256e9cd5f241a4801d79d3b2b7b89d ] commit 59e8970b3798 ("RDMA/qedr: Return max inline data in QP query result") changed query_qp max_inline size to return the max roce inline size. When iwarp was introduced, this should have been modified to return the max inline size based on protocol. This size is cached in the device attributes Fixes: 69ad0e7fe845 ("RDMA/qedr: Add support for iWARP in user space") Link: https://lore.kernel.org/r/20200902165741.8355-8-michal.kalderon@marvell.com Signed-off-by: Michal Kalderon Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/qedr/verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 682329789d00d..4408d33646647 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -2405,7 +2405,7 @@ int qedr_query_qp(struct ib_qp *ibqp, qp_attr->cap.max_recv_wr = qp->rq.max_wr; qp_attr->cap.max_send_sge = qp->sq.max_sges; qp_attr->cap.max_recv_sge = qp->rq.max_sges; - qp_attr->cap.max_inline_data = ROCE_REQ_MAX_INLINE_DATA_SIZE; + qp_attr->cap.max_inline_data = dev->attr.max_inline; qp_init_attr->cap = qp_attr->cap; qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; -- 2.25.1