Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1479088pxb; Fri, 22 Jan 2021 17:47:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsm0tcezx0DM5Q9ilreFQlThoXYBjnx+aTeOXGjWkpVVkZb3b3Esx/k2nXYefGKwjRq5ur X-Received: by 2002:a50:c209:: with SMTP id n9mr5298346edf.123.1611366427026; Fri, 22 Jan 2021 17:47:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611366427; cv=none; d=google.com; s=arc-20160816; b=KuNvqdMxoPEnTJiwUO5PxcXv1G39WfyJJNILhEm3NWQKRprAWN/rJiqWN2IFSj6uNk rOvsqK5I7VvtHG+RQp6Efj553AR9bKdGDCmqeMDA/lFuVEhLrHhEVSQKOl8ML4w5Wfcn wg9XPiMo+1DplRO0h0hlYm5r8wcC9oqW8AWqdfV9byVc3MdcgwjrpuOs32jvxJBIsFhF vEtSCeh6zWPGVwvWptY0/ASEK7sG4Drr17ruWUxqTxCuaHHgA0i8vQy7RzjnylPurHUE YCjsquuAakPC/qsynzMisJ7Vg18dYzxdIKw2EPbqpTITnjxhevHID74swMJpEV/8F98A ZV1g== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=FQhgKNlgut9v1zO5WdkccM2YIqcFTHZaSi06sLuY47c=; b=hrduNE/1C15rrFGulcVmVTGzR4bhcw6HNMzR2c/G2qKey5aai3jChtpasbpqJP0Tgt T8PPLnT29Rkhtr+2MY05v78u09ue56VQuKVM8eUOWt05kDT1dmIzsVGbVbdTwcDME3yG 3j9ViDL4oNSrsIlZgKYGsxkNYHijqFdx7ytdE+aSCZ65IU7nxQq2Pk+dgM/D64PsWfdi 4Wxe9b39FdzHjnal4RzyW4TjMxGn1LVKjZJIuz7CkuDYTfUgoU0f2kVEZfMZKcKnCpEL y0CogVOd29iKl5aNqhmKSDxwHccFAbhW+qkt7U994icoOCzN9o5z8eRNyjVFZnW1ggIm BqCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fRa+TM7L; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk25si3707966ejb.7.2021.01.22.17.46.42; Fri, 22 Jan 2021 17:47:07 -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=@kernel.org header.s=k20201202 header.b=fRa+TM7L; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726287AbhAWBoI (ORCPT + 99 others); Fri, 22 Jan 2021 20:44:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:57296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbhAWBoH (ORCPT ); Fri, 22 Jan 2021 20:44:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5DAE623A60; Sat, 23 Jan 2021 01:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611366206; bh=3jJdRfMfmME9F1MhCK+yHwe+eHsS2tV4j0XTgdSAaPg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fRa+TM7LC90XDRWr6L5HX/kMkcmOZC9lyEzbE3j2oIlTrwQAp1VnB1si6lGZDQrYU w7OjouWffbizGpo4pUDuMIY3BYcwO+YaI8gLovO9xiu4ORMt2ZrQ1a81VAO+98ZOen Xt8OxWICQJALI/nJQAM/0C6A8HGLkab0XbbzKAcwxdjLU65lLJikbchmAVYAg5Lxq5 SIvTauU/QPIr5/cz+IRwLThDC0CjGghNk2Iz1arnT6W8xhIeKVrSExdxtpHRpgfn1s fuStULOx/bg3OtAz8fsrRjPuUDUTpSQlLPWxaFfecKtRy1mAjP5G+BsVjw/Mo4CHab axiLkDSohihJw== Date: Fri, 22 Jan 2021 17:43:25 -0800 From: Jakub Kicinski To: Enke Chen Cc: Eric Dumazet , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Neal Cardwell Subject: Re: [PATCH net] tcp: make TCP_USER_TIMEOUT accurate for zero window probes Message-ID: <20210122174325.269ac329@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210122191306.GA99540@localhost.localdomain> References: <20210122191306.GA99540@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Jan 2021 11:13:06 -0800 Enke Chen wrote: > From: Enke Chen > > The TCP_USER_TIMEOUT is checked by the 0-window probe timer. As the > timer has backoff with a max interval of about two minutes, the > actual timeout for TCP_USER_TIMEOUT can be off by up to two minutes. > > In this patch the TCP_USER_TIMEOUT is made more accurate by taking it > into account when computing the timer value for the 0-window probes. > > This patch is similar to the one that made TCP_USER_TIMEOUT accurate for > RTOs in commit b701a99e431d ("tcp: Add tcp_clamp_rto_to_user_timeout() > helper to improve accuracy"). > > Signed-off-by: Enke Chen > Reviewed-by: Neal Cardwell This is targeting net, any guidance on Fixes / backporting?