Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1326871pxb; Fri, 22 Jan 2021 12:45:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+4FhHCexG9f9COs6OYOIsq6d3nXtccYakE4x6O5H0mxeRkkgJpONu751xJnooTglUKE3B X-Received: by 2002:a50:8b02:: with SMTP id l2mr253043edl.322.1611348356610; Fri, 22 Jan 2021 12:45:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611348356; cv=none; d=google.com; s=arc-20160816; b=dMcg/7OfeR9QcjQ5Tm6esZaZbrvQLQeYB8/lekFUz6nN32jGCBqekzWo02e0ZrQxpo jy7c/MnWzbyqxUHm8HIXeArveJeLARtEL7AJXeAQQ3wDD66yTnCMajYf5ICrwcx9dofs qOcFT28XTQkrbzfNGh4nVVUXGcHKmE3rRJVRORVTcycN1rXhS1wKYgfXgexuQZAU2/5R +5RbWBHKwb9lFk21k8FUWyVo8jx98lYyugEk7IIlIVrfn3HnTYZHl1T5uiRJr2BCQDMf PuQD1cBr7sfvbGcIVf0OXFp8YfxDgy9ByWkY6esS8vdQ4XNMH8Qk4/btSS5EEY7b6iIG LXCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=P+7s2tkVUfM+BW/7C7dTp16gqbBze+VCFXaj6B34TXk=; b=N9YuavA9YC0ZBuPU+feAG5dehyr8A4D7i958w0Ctfe+kGTIMvdP742e3/Qs2TMPYL1 O7bVnznoSPAA5C2pLOHag2gI6O2JHG7cwjcQXvALMbRiG45DdvnP93Zv+WyvklW0vr6L kBUTt4h/ULnqVE67CnM2UE5CmVzaIsETknfBGHusNtrGvhV6yrjqpEbex0GTYkMFHgcA Ik9bR8hVSUn8KIiRmlkK4SbuNdCD6xZoy+yhvkwDtQpOx4h79xWIczpfbGN75YpCEkhM swiaz4KvLZ4RmXq9pKw95umyycSJO+Na9Jj3YYRTalBD4DY4bvwHx7sGT2F9+qslth2t IWDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XRup72qx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id os13si3465090ejb.680.2021.01.22.12.45.32; Fri, 22 Jan 2021 12:45:56 -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=@google.com header.s=20161025 header.b=XRup72qx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730279AbhAVUog (ORCPT + 99 others); Fri, 22 Jan 2021 15:44:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730458AbhAVUmg (ORCPT ); Fri, 22 Jan 2021 15:42:36 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B1A3C061797 for ; Fri, 22 Jan 2021 12:41:39 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id q1so13892150ion.8 for ; Fri, 22 Jan 2021 12:41:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P+7s2tkVUfM+BW/7C7dTp16gqbBze+VCFXaj6B34TXk=; b=XRup72qxPpm4XucnYUWWeTrU8zT1PVzcryeZqqt0TZNUriBcCV7X4Fao8MBin4HMWr Rd/NO378OhnB0m5mGUkXdU2gUoUfY3Ln8ACRtV7O7HllUUd75LZzb/yBcBSKsbyags7Q ivdJGru80ZQYqYuv3FyAjaU3YqexHBtkgAwEgZcEXyGKz8cI21K86lU+vduYDgzpe9Xo q3iddcUdBwIoqvdU44qu+VDkfdapD2aelJ8ZJZ12Qzg5Gy9W1kDdaniTpZIaL6+/MqyI V6W+QLdsjXxwUwXWe+qScL9fabX1pvLZagXcByHOZbWl2S/iJjrSswtEQEJtkWOBYtJ5 gflg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P+7s2tkVUfM+BW/7C7dTp16gqbBze+VCFXaj6B34TXk=; b=LBksygVZQ1Y67FPvBsG+Yx/M8TOpdVUlQP8Nne0sv7ciiZciPvyC2YYHmQwWteoeLs QsZG+01Sp4fA9rSGFohwBXNCW64wyW2QVhTgAC6ZAxk8vkrHcuRF2ESe2SO/Qrp8acJS xQ4LnyxIwpCD2QBL7or9LKfhCsW0rmVukKXanhh1xFaPfi90YhuWC5oiLV3egbGgXFga 7TPAS2PjXtFE1Zf51azdCdw0Rcp9BZh6I+1easCs9KqQZ2h1izSvPx89J0mQk7LGK4kZ Kv7ggRU9Jsl5cbQ8yP4C5dN4fYA1YPza/krZHRLzFh5a5t7B2JmIbvHxTLlHOhb4Rh9V pZgQ== X-Gm-Message-State: AOAM533T0iorNjG1ZNGAyUJDVxjtLT0dkHi9XdXU1uN/NWDnau882Kuj zWO3XkMBMZAnazCoFkBTj3q/vH+QSWz5SS9qsWms7A== X-Received: by 2002:a92:d3c7:: with SMTP id c7mr300561ilh.137.1611348098424; Fri, 22 Jan 2021 12:41:38 -0800 (PST) MIME-Version: 1.0 References: <20210122191306.GA99540@localhost.localdomain> In-Reply-To: <20210122191306.GA99540@localhost.localdomain> From: Eric Dumazet Date: Fri, 22 Jan 2021 21:41:27 +0100 Message-ID: Subject: Re: [PATCH net] tcp: make TCP_USER_TIMEOUT accurate for zero window probes To: Enke Chen Cc: "David S. Miller" , Jakub Kicinski , Alexey Kuznetsov , Hideaki YOSHIFUJI , netdev , LKML , Neal Cardwell Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 8:13 PM 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 > --- SGTM, thanks ! Signed-off-by: Eric Dumazet