Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7037308ybi; Thu, 13 Jun 2019 08:31:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLnfR3350FySwDm82mYai3fpmmY56CZjIWeuLgtN5x+BI0lEbrZgd2N2a9bG99TlDVoaDP X-Received: by 2002:a17:90a:3724:: with SMTP id u33mr6173265pjb.19.1560439884912; Thu, 13 Jun 2019 08:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439884; cv=none; d=google.com; s=arc-20160816; b=SZgjE9ZRoscRM1NJg8qKNp8A9NWoV2TAlfCRsbs38mw6YPQSmWEMhkg7RCf6uULwVa 49F0AkDD2WkQMRiVQbZ0c/5+stw2TkDQFPPAfWqf3XInO5E4BXJRptUCsPZioZYIu7dZ 65kcLqt0ZjrSgDxRCzQ+D0dZHt0Vd7G+gBsn6UAf7zZGUKSTWs55nBcwDiB9mO44sZOc XFKznIjUuHtCaBM2/vlbRx23kqflZsAxxutmy7bMKjN02xkEvbt99JrSy7bev/F6W6cP M8XTd4hSxtRC7M2IOF1Abn7zujEd6fChSKaT0QKlwjpF45WlBZwueKNUHJj6ATmxLTGs Ie2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yUJJ8iqcvuJ3BPVcgtI/PQYUXpHj8gT005mFggb92XQ=; b=qbBmoOhN/NhAlkZ40EInTc66Cdimy0y5Q3f/L5c8Y8osdm0F6wFcvO1MiPw14cyay3 mM6v6gzxI3J+nBliTg1xiLlw9ccY9TpxihoIrtND6lotc0Y53Kz3Wkmm/uOV/outLpIx Rv1oQ9ZpLnxnnEG/pWVah9v2OXnsoxHD8/IyhAGwX13WRIKV5vHhCXmO9Tog9p6Yi1TU wzZ8YuH594zmVffn5p/pXMgOtxAPLSPJfKBg8QKRrHQ/6SVhiIv8VKp3pKpTnVQmA71k +R30oL3wDrwU8VzYMO9gw0f9K+euFxnKyl6owx3JdE1VRHDQej5ZIDEnGehD5m3aW1qZ Pv6w== ARC-Authentication-Results: i=1; mx.google.com; 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 s1si3289589plp.66.2019.06.13.08.31.09; Thu, 13 Jun 2019 08:31:24 -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; 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 S1728927AbfFMP25 (ORCPT + 99 others); Thu, 13 Jun 2019 11:28:57 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:40134 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727315AbfFMP25 (ORCPT ); Thu, 13 Jun 2019 11:28:57 -0400 Received: by mail-pl1-f194.google.com with SMTP id a93so8309499pla.7; Thu, 13 Jun 2019 08:28:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yUJJ8iqcvuJ3BPVcgtI/PQYUXpHj8gT005mFggb92XQ=; b=PF3GNfhjtwVYJdzQBH96+/hxI1EhFG/gMHdHTnBfDvIBuBxpMxbseSn/0HkOCDhkDm JSk0oxYKaKsLKxUgd/3HTPaasTCgDkhU1AgxMIpGAqHtTI1x6GuFenwI1rtMu4wrFYp/ e5tTP4UbcYIRq40/KTzyDLttdXHgGsgyzzFi7PohP5+DXHBAx4sAVAfO5aK9Vgtjlugq rw9WKZ81kBEe1eNDOUBlKPLA2Y4bdDZHVp//CTmMiyCYjDqBTJm2TMbYFnoJHLOGue/N kDa+luB3kqyZ1FLAQuPK3zKa9DHiO+tTFs7XSnJp0cN6/6fkNcXhQ0GUPRU1dfGn5ZZa MvOA== X-Gm-Message-State: APjAAAWG9w8EuKdzM4hgqqU7IgAfyX2gevBs5KTJHv8nYm1GErXxf4dw oZFuLsiljcNikXenlRhCP+vAZu/B X-Received: by 2002:a17:902:bd94:: with SMTP id q20mr2154027pls.307.1560439735599; Thu, 13 Jun 2019 08:28:55 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id r3sm164908pgp.51.2019.06.13.08.28.54 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 08:28:54 -0700 (PDT) Subject: Re: [PATCH v2] RDMA/cma: Make CM response timeout and # CM retries configurable To: Doug Ledford , =?UTF-8?Q?H=c3=a5kon_Bugge?= , Jason Gunthorpe , Leon Romanovsky , Parav Pandit , Steve Wise Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190226075722.1692315-1-haakon.bugge@oracle.com> <174ccd37a9ffa05d0c7c03fe80ff7170a9270824.camel@redhat.com> From: Bart Van Assche Message-ID: <2c114313-01fe-6d4d-5134-592d1a7b829b@acm.org> Date: Thu, 13 Jun 2019 08:28:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <174ccd37a9ffa05d0c7c03fe80ff7170a9270824.camel@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/13/19 7:25 AM, Doug Ledford wrote: > So, to revive this patch, what I'd like to see is some attempt to > actually quantify a reasonable timeout for the default backlog depth, > then the patch should actually change the default to that reasonable > timeout, and then put in the ability to adjust the timeout with some > sort of doc guidance on how to calculate a reasonable timeout based on > configured backlog depth. How about following the approach of the SRP initiator driver? It derives the CM timeout from the subnet manager timeout. The assumption behind this is that in large networks the subnet manager timeout has to be set higher than its default to make communication work. See also srp_get_subnet_timeout(). Bart.