Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1748236imm; Thu, 19 Jul 2018 07:17:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeaiZgxlClcvGcLH72Z+q7g+tlB+f9tZXTriwUJABKzU5UY3NCf4npLG28/DLPM6mccQM0C X-Received: by 2002:a63:ff4d:: with SMTP id s13-v6mr10197337pgk.150.1532009823207; Thu, 19 Jul 2018 07:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532009823; cv=none; d=google.com; s=arc-20160816; b=0DWso+5PN5hHH5FaScUAsdHoLHA6CNsC6iNbnnOlIrWLs8KYp/2cekdE9ooS8PGxCr DqKiCA+nSHrJxcQ2sJXW2soYztHXMEuSfNXviu1nhTGMqtheL6xtl9s8qeOeVi81Ng5H U9B7JH7R6w2fmyNNwYZyTV13jlrLp4bNq0l0GIkOf3CnhNTdS67YAvlLCQCf9LfbZXno YH23FEloVbzmpOz+UDr13Cg87s3QBuGODTc6iVcA3XmqwtVJ4GHtpGBTuEwYbAcFKKV5 sIumnWRqYl3uOvIAetSj3QyLMoCGrlv4w03m0jCPlYsryPH8E3H4L8r4cvHpibttvmsn KYrg== 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:dkim-signature :arc-authentication-results; bh=1psqjRG5piSM3F0Ley1z0eZufy6hfuPajAAvEZFvnbI=; b=w9RiguLEdGy4bc6jvvp3+/TcCNWLqhKwcJPKM+ol94p/9zwXt8czal/B5ej84uBw2i j2iNfC0wCN68loblMQOfLvInV1DLXfdboeMzdkzLdFnhdnzoUnFFcJMhIVtQtxHkiWqU NeWCHLwK1NMEk1oTcycs0tQP7QtuZtJTiWgfohnh8MfoHCWM6yV8I0NI2VPI9k57ZL9F KWSJitA1+cDURfS58yQk1WnYQfF51h5sCV9SOv7yftH5tUMXZ5wG4nNYAd94K+fF+GAQ 9FfTNZBEVVXO9/B+WwBF5np6g7IZmM9jCdWXtJ6gy+2TyyptqMHFLPVby+3jv03135Zb Wxzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Ff/A6tk+"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g35-v6si6182242pgm.54.2018.07.19.07.16.47; Thu, 19 Jul 2018 07:17:03 -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=@gmail.com header.s=20161025 header.b="Ff/A6tk+"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731724AbeGSO7U (ORCPT + 99 others); Thu, 19 Jul 2018 10:59:20 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33303 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731110AbeGSO7U (ORCPT ); Thu, 19 Jul 2018 10:59:20 -0400 Received: by mail-pg1-f195.google.com with SMTP id r5-v6so3899521pgv.0; Thu, 19 Jul 2018 07:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1psqjRG5piSM3F0Ley1z0eZufy6hfuPajAAvEZFvnbI=; b=Ff/A6tk+SNfs48tVBSovBKfXFY4CzVa6Ho2yD95UkxWP47/6YeyOLDBsR8f6M28bVK 6F/3u5QjTSo6Iw+OaUaH50EYBCGr/+V++l9SRDtyyr6IEl3u3RImg3vHITD82vVCU19X rGMR0smWm2rB8DWSyfmZNWvKRgywaupc05c8w7TO2RpGqm2apvORiotgCgCMAas35HOk W6lk6X2mnu0eTV6ajwCv38vaQ9PSVC0Gjad6UsAG4IymZ8FZck4QtcQQNwkDPvowk/t2 dZlztBm76St234AH/hx4lnaDxiedJHgbPRC3Vq4Koxw+MIw7897TnT+cm5l006CrGhav Vdvg== 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=1psqjRG5piSM3F0Ley1z0eZufy6hfuPajAAvEZFvnbI=; b=VZGdXijsjmc+SqlahYCFddGoyqbZS8KOJW+9yGSZw115ot6x6yiHWtioBmCsbiXWiI TMllsNJnpqt5a4t4JH9WXudKV2r1IspfPLwro7Rzk0q09uNphYHlimxEGPG4xGKFwSQp c7rQM6Fegm27s6vnuPAj7+QPIVu+bhlCPTfjZLfE4+fLEm+eBLwFftvOBo48FsWPMCJg oNHabpve9WWTKj9Doh+kC79XEypiCGBPG+Q6stgGrFrpsQdGMvNb/iOKoDCNxxoPTcFs 0YBA+93DgvxuJaa7wXDLsFkfOW/ba0wSXgMvOg3jgFRrDOmoFtY4jwInzP7c+A4AeTcO GRmw== X-Gm-Message-State: AOUpUlH8/HVmbIivVYYKy+2NE/l6xIYw5JA6b+TJdukOJ/yA9QxgOrKA H0jwMflkNZwJGg9pmaIUeCs= X-Received: by 2002:a62:e0d5:: with SMTP id d82-v6mr9764198pfm.59.1532009757136; Thu, 19 Jul 2018 07:15:57 -0700 (PDT) Received: from [192.168.86.235] (c-67-180-167-114.hsd1.ca.comcast.net. [67.180.167.114]) by smtp.gmail.com with ESMTPSA id r25-v6sm21767829pfj.42.2018.07.19.07.15.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 07:15:56 -0700 (PDT) Subject: Re: [PATCH V4 net-next 3/3] tcp: Add tcp_clamp_rto_to_user_timeout() helper to improve accuracy To: Jon Maxwell , davem@davemloft.net Cc: edumazet@google.com, ncardwell@google.com, David.Laight@aculab.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jmaxwell@redhat.com References: <20180719011444.4694-4-jmaxwell37@gmail.com> From: Eric Dumazet Message-ID: <20f1f1d4-475e-9639-3d9b-44a139c68000@gmail.com> Date: Thu, 19 Jul 2018 07:15:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180719011444.4694-4-jmaxwell37@gmail.com> Content-Type: text/plain; charset=utf-8 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 07/18/2018 06:14 PM, Jon Maxwell wrote: > Create the tcp_clamp_rto_to_user_timeout() helper routine. To calculate > the correct rto, so that the TCP_USER_TIMEOUT socket option is more > accurate. Taking suggestions and feedback into account from > Eric Dumazet, Neal Cardwell and David Laight. Due to the 1st commit we > can avoid the msecs_to_jiffies() and jiffies_to_msecs() dance. > > Signed-off-by: Jon Maxwell Signed-off-by: Eric Dumazet Thanks !