Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4836297ybg; Tue, 29 Oct 2019 13:09:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGakKmh//RrYKNksn+E4jdeE7w3LvP49iH+bOMI0I6PJVtojk381n/83+SS2CMaxL6vXZs X-Received: by 2002:aa7:c757:: with SMTP id c23mr15739501eds.209.1572379757321; Tue, 29 Oct 2019 13:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572379757; cv=none; d=google.com; s=arc-20160816; b=ibxHT0amTXyyDTPtNxNXNtyCwIZp8eIUwg6eidhwB/rdnly0mE2bo4C/RBU9IPaLzV +rkSlRXEQCCUvkf/27ij7oz+QaIlcA4OL49AnxXRheM/mJhZ1Z+hixM1b1LnO+yUAX1A m0FAMGQfogu63UkxBIx8WZkb0nOlyFTPVyB9HVkrCol9utNsKfr8vbKShTV721gOnxr1 Qygv2iu1R8ErVkgYa7ZqaMrMWLNjcehuYDWGY6rHNeM1pT4JsAAl4b0UZ2Le66FGAesB XWjJh0fnIKTUibuuyfaqQmMoWoaoSLOn5ORSEu67EM3OlEibKv0nuyAJavytIbfK1xOF 9fvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cQkD4MvS0kKW1/ul+xB5LN/x1F0/sjmZ3GaEB4sIcXA=; b=Ct68hmPHU5XhlU9zXeJxb0IFRhqBqz0fJS54bSnBW9rBs5qZaA8mPRrKUArQxED66v j0tAejaH84Afx25Y+zANbxnQYuWpE4yDDWlp9C/694UQMFT109U6Ip6LpMoOzigtY/Lr 10lj3mkD7vLLh8P2kKd/wzrSvV9GSn7V/Ls0VZeKDR4g5VxsARWvKnsPhXe2lw6YjjJD Zi5J4k+YFHqk0OgKk6t5IpvBY5fm7PXdbAhS001MaRqgLbOLM1PUa5abfIgWTYvKSqLY 796XTUd7cYNsK/m2oFnWCb9ydhIesTVOLMp+Zy9HA2IF8fz6VBd0jEfMfeulPQQkSfq4 ZR4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=UTgrs2sE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d44si11652418ede.149.2019.10.29.13.08.53; Tue, 29 Oct 2019 13:09:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=UTgrs2sE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726346AbfJ2TvE (ORCPT + 99 others); Tue, 29 Oct 2019 15:51:04 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:43417 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbfJ2TvD (ORCPT ); Tue, 29 Oct 2019 15:51:03 -0400 Received: by mail-qk1-f195.google.com with SMTP id a194so78605qkg.10 for ; Tue, 29 Oct 2019 12:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=cQkD4MvS0kKW1/ul+xB5LN/x1F0/sjmZ3GaEB4sIcXA=; b=UTgrs2sEctwlidoemzTmSe3mg08J8lodDl8CYJjVTOFTT+YNjsbAdL/GBeqMFfnB0l URtqgGALgtypK14/rZfHTviUq1QdHn+pD6y+O+SbVT+Ri9fp0oVJLCL30ZyW+ZV7GF/2 YAKog5d4ob6JulurRIoW80FwREVYBbDEKVeKM/c/hCMBHh5QTy1doYCBSUG3M1H7uidE RU8VpQQPZm49g02i6f/9IgGaAP8yJsA5GqT/hGq96XsPzJuGWbltrYTTe/ncqPqIyBGe uxfsHVTkc181cbNhqYo7YcmffiBnz+Te8Kb9Nq3MsuE90VUkKzHADyLLt2yWtaWlz3aN IFqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=cQkD4MvS0kKW1/ul+xB5LN/x1F0/sjmZ3GaEB4sIcXA=; b=dlY0eUkioh+oug4AEbpAelLxo4KrY4gD9orEsfQAakaEv9XnU2xvuvZxGWdJ96DarM 2Hfs0xITZp18+GHLm+1dIeV9JmXthhqA8EC/8QWHRSShIptkFYUrfjK38Th2Y4ay2Oov 6inuA49UiCdw7wt2SFiLPCcHwFthvmi35FuAUz8Z78jqiS/B2/ap3UH2/zuHMhIvJN+l 8F19DaFU0uWIh+ky/FFQ0F2Rx0OVfpznENovUvQduSozp8wzSDTVXLmPpSoybjlfNABU LbXKGJDF9WROW6wALKw0UjDugXNPmRcq+Ztzam5t5HcRor1BdRJM6mdf1tscgSnmZgjF lKqA== X-Gm-Message-State: APjAAAWastKWG5UVKBMtyzKLiSHvYYMoz7WafvwRkKadjRU095O3Y0Xc bgGAmpV3DcH1zRYocx3RT/syEg== X-Received: by 2002:a37:8046:: with SMTP id b67mr24024593qkd.437.1572378662716; Tue, 29 Oct 2019 12:51:02 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-180.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.180]) by smtp.gmail.com with ESMTPSA id g45sm4240565qtb.48.2019.10.29.12.51.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Oct 2019 12:51:02 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1iPXW9-0000Rd-PJ; Tue, 29 Oct 2019 16:51:01 -0300 Date: Tue, 29 Oct 2019 16:51:01 -0300 From: Jason Gunthorpe To: Dag Moxnes Cc: dledford@redhat.com, leon@kernel.org, parav@mellanox.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH rdma-next] RDMA/cma: Use ACK timeout for RoCE packetLifeTime Message-ID: <20191029195101.GA1654@ziepe.ca> References: <1572003721-26368-1-git-send-email-dag.moxnes@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1572003721-26368-1-git-send-email-dag.moxnes@oracle.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 25, 2019 at 01:42:01PM +0200, Dag Moxnes wrote: > The cma is currently using a hard-coded value, CMA_IBOE_PACKET_LIFETIME, > for the PacketLifeTime, as it can not be determined from the network. > This value might not be optimal for all networks. > > The cma module supports the function rdma_set_ack_timeout to set the > ACK timeout for a QP associated with a connection. As per IBTA 12.7.34 > local ACK timeout = (2 * PacketLifeTime + Local CA’s ACK delay). > Assuming a negligible local ACK delay, we can use > PacketLifeTime = local ACK timeout/2 > as a reasonable approximation for RoCE networks. > > Signed-off-by: Dag Moxnes > Change-Id: I200eda9d54829184e556c3c55d6a8869558d76b2 Please don't send Change-Id to the public lists. Run checkpatch before sending. Otherwise this seems reasonable to me.. Jason