Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp720005pxb; Tue, 5 Apr 2022 20:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW8qx1ywZnA9LKpSj3jh+/zAeFmAz/PEPrRauiSSqDRBvYoV53ejz0RHUMLo3qIXjNNI9E X-Received: by 2002:a05:6a00:4107:b0:4fa:ac90:f299 with SMTP id bu7-20020a056a00410700b004faac90f299mr6769654pfb.58.1649214832289; Tue, 05 Apr 2022 20:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649214832; cv=none; d=google.com; s=arc-20160816; b=o90siHFlmUbWCfH79eCYqG3OIZ494Pdn0qfhXmNg+7WgskO1prtt8f2ahM1x38QF7A JFne5GGV1VC6uD7QdchUrBAVHP9WIq9FYnLmnW8dAYFp9mQg4Go+1JB6NILNp6ZxXOhF f+tXijqfAKhzqWOsB9MMvClM7BmG8gNuo3mKM3ejZjG0e8+TxB7OUGBX+AXPNjrQzBkg f/mMuXrnsagE/PJOkYFIiX5kl7qVGxQ41nsWy9nyWMqSZHjUy8+adwccKaMyNwfPTvpg qsKRw8UN+6jjrNT0LQY1SnAlCTk6EbS32CqOxyoXipt3YClhH+Ajs1K3dtwv1h57TAmD LGtw== 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=m/GolHE+iB0YGMAOmm2Q9iAZdmnZe+ptacw1dvAErUY=; b=m9w4q6i935i9lBKtaxaeBd/6fdzeLjDh/7UMrIHL8UKQzWM2gBzPDGPVfvusjojwq0 WNe8Fjt8KufSb1ZA6j++s5mV866auW8E7WN6d6bVI9bCfnNdT7RFhdgYCy7kZWSmVdpZ LZVrBHBKbAp0IzRe0LcQOeZ/1dy6pf/H1PxD5BzvufQksjALtp6vLlOgvJXcYYxKIHXo 4kJlCodeMPxeZAfqmVNOStLhHftYuzTnur8uaTGuMpreef3iol6Y4FPdPBUp35f2qs6l zVmw/KAecdutQOCRoCAEBDRZsRjcnKpSKng+kpV7KzBHBnWmLzlbGZ6GnCjaOcW7889z 4JWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TUXLSaXj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n8-20020a170903110800b00153b2d1651csi15724064plh.292.2022.04.05.20.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 20:13:52 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TUXLSaXj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E22162F0B16; Tue, 5 Apr 2022 19:53:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236752AbiDEJDf (ORCPT + 99 others); Tue, 5 Apr 2022 05:03:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237307AbiDEIRx (ORCPT ); Tue, 5 Apr 2022 04:17:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3F9FB247A; Tue, 5 Apr 2022 01:05:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2482AB81A32; Tue, 5 Apr 2022 08:05:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DC1BC385A1; Tue, 5 Apr 2022 08:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145955; bh=z4X2TOCVkPdc87zBs4Ci6szkr+dJ8hZ0JXDEgwsBU/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TUXLSaXjVj4W4T7ffLoEo6k1kLyyTklhXHMhTemXg/dX3aydYXYAHOeIAaMRJ8UPE tvxxv9P6KbwvcRWt8MrT8rVi/guz7U1s2VlzS5N/w5w7LBPujysA8RwOTrOb7BEUSx gWsRDwMgsvCrykNZhOxhLJAhQCI8K9wLHyQimWrQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?H=C3=A5kon=20Bugge?= , Avneesh Pant , Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.17 0552/1126] IB/cma: Allow XRC INI QPs to set their local ACK timeout Date: Tue, 5 Apr 2022 09:21:39 +0200 Message-Id: <20220405070423.835840208@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Håkon Bugge [ Upstream commit 748663c8ccf6b2e5a800de19127c2cc1c4423fd2 ] XRC INI QPs should be able to adjust their local ACK timeout. Fixes: 2c1619edef61 ("IB/cma: Define option to set ack timeout and pack tos_set") Link: https://lore.kernel.org/r/1644421175-31943-1-git-send-email-haakon.bugge@oracle.com Signed-off-by: Håkon Bugge Suggested-by: Avneesh Pant Reviewed-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/core/cma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 50c53409ceb6..fabca5e51e3d 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -2642,7 +2642,7 @@ int rdma_set_ack_timeout(struct rdma_cm_id *id, u8 timeout) { struct rdma_id_private *id_priv; - if (id->qp_type != IB_QPT_RC) + if (id->qp_type != IB_QPT_RC && id->qp_type != IB_QPT_XRC_INI) return -EINVAL; id_priv = container_of(id, struct rdma_id_private, id); -- 2.34.1