Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3046506imu; Sun, 11 Nov 2018 06:34:59 -0800 (PST) X-Google-Smtp-Source: AJdET5cEZ2/titq/N+g8ZjJppq0+Z5t/LN8/ouVyISrNsZidjlzNesDKulcoTQaVwoqP6VqFvbKJ X-Received: by 2002:a17:902:5e4:: with SMTP id f91-v6mr3276321plf.75.1541946898977; Sun, 11 Nov 2018 06:34:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541946898; cv=none; d=google.com; s=arc-20160816; b=WRQXyU2QNQdF0dCAI+EVkD3UjbZG4cI5mC//vgZz5M5ORj6q+Gu6zaH2m1ED/9X+BF 1QniEj3FO3rPm4XYbgBOCwGpXdlD/6F2KsvjkdqT0q/IBGt58NyV5A9kIJh8mxV/ANAu hZ78chCpAP/ktvnCKpIrcfwIBFOIGuDvrrFqj0S9ggq/+/H1NkBuZKHo8W6g9JQHmmzw QDewHrkxQB8cJP1HZXG/IifG09Lhhn98k75Hwqpep5liBEUOIyzOacFB96et++f30dCh koxra6oHLN7zXysOta/QqMOROmcRnMyDMdI2nKUc3fMCiZXza7j0WhSY2YgY6Dd26Q7h RDFg== 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; bh=VeD3un/q4zgsizWU4ltBR+n7y7PYhqkaZE3ZLZKw1IM=; b=Xz0/8juXl93qUDze5KwySPfj0wXQSOoOwJcftAeJapgfVLrgQQzpn83BjRUXC3CJBU C1cl4ezhUQH4LBP6XhrGLlfXZXclRcotltlXaOfO7HD5n7Vg64PGR+DvHgGNYiYBS9mb yKGT/aNaATY8MqMpFdqQaCaWxBIN29fRhSrTcuFasiAp5nnFcU1EEvT/G0vib6GFAm3z phggJn7+5rtYSwDNzqQRF585Z8xw89AD998p1KhEAQLyTLla70HL4LL/IFEEWILnMSEl HDVm0my47bIut8V+XQHtBqOz41LjonaUUmoZEywKMEIX38u6V1Q6Y3Z8ghulfxkWpw/I kSSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SHelIyTE; 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 i5-v6si1586552plt.108.2018.11.11.06.34.43; Sun, 11 Nov 2018 06:34:58 -0800 (PST) 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=SHelIyTE; 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 S1728395AbeKLAW4 (ORCPT + 99 others); Sun, 11 Nov 2018 19:22:56 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39203 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728186AbeKLAW4 (ORCPT ); Sun, 11 Nov 2018 19:22:56 -0500 Received: by mail-pg1-f195.google.com with SMTP id r9-v6so2873010pgv.6; Sun, 11 Nov 2018 06:34:12 -0800 (PST) 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=VeD3un/q4zgsizWU4ltBR+n7y7PYhqkaZE3ZLZKw1IM=; b=SHelIyTEEdjzt+kmXdyAnBzwGNUOFJ3h4EdMIS43Rlz4TGFeMzNDLOu9CaKR5V3J4f 3+/VcbVYtaN/KuWb+ttafMqU6zHsYocFzPXpbV3mZ5tSmY+Bq1ivd86id6l3XMF2P4hj HsPKo9by4jbBgjGZOF0oBNwlsE9MaYNB78SnmvURZ0KYm7KSMob0+259mjrZGYUae1ZH bd5t6XFWoBeFFAtN2DhgkS7DBt8sbzbCuUUufW1j7Nd7SPxIgxRDuvKbX+T2xY9FZPU6 I08Gnl3ElZMl+phYojHoalkZMNM2ZRknwUADj0RNoBLwgN0YbfOiIAUqg4abn5Hi69y1 0KuA== 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=VeD3un/q4zgsizWU4ltBR+n7y7PYhqkaZE3ZLZKw1IM=; b=I+97L6CB+QCOjWVzbEB9C78aDI5n54WEQVY84r2hm2NF9jI1QcVUugmAc8j5qnzU+B h5/P70E1qJcHUF8VBIqTmptu0EaT8rprK2h4w01IdAmY+aAWEkHe3tbsZ6TGC/MXIlg6 WNtdqwb1NouxQ87xB5tuw11lzMY9tVXdABIyZ3AHGtCFqpea06kqTqMHhiyVMnJ7t0Pa 5gSP64gKOyNmCqT3vNBMs8X7BvGf5pF/hWKg/YFaeHolW1sM4vY1kdiC+jaA67U5SlAO 15OVNhujojcfa93T3ZyMJf585A4sew/ARf4Ogy6utafN4eWOEaWmdi15QS8O2/3YEfl/ AUAw== X-Gm-Message-State: AGRZ1gKYINj+AuYFXnqbWGuzpHxyTsdjgy8w734gqhTXKgi4hU1V29aE irn7HQSAOIjCkQbEtx0HYHg= X-Received: by 2002:a62:c5c6:: with SMTP id j189-v6mr16957604pfg.194.1541946852217; Sun, 11 Nov 2018 06:34:12 -0800 (PST) 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 y29sm4210574pga.59.2018.11.11.06.34.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Nov 2018 06:34:11 -0800 (PST) Subject: Re: [PATCH net-next v2] tcp: minor optimization in tcp ack fast path processing To: Yafang Shao , davem@davemloft.net, edumazet@google.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Joe Perches References: <1541938210-11797-1-git-send-email-laoar.shao@gmail.com> From: Eric Dumazet Message-ID: <678e757d-7df1-4c5d-7acb-dd6b0f94a859@gmail.com> Date: Sun, 11 Nov 2018 06:34:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1541938210-11797-1-git-send-email-laoar.shao@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 11/11/2018 04:10 AM, Yafang Shao wrote: > Bitwise operation is a little faster. > So I replace after() with using the flag FLAG_SND_UNA_ADVANCED as it is > already set before. > > In addtion, there's another similar improvement in tcp_cwnd_reduction(). > > Cc: Joe Perches > Suggested-by: Eric Dumazet > Signed-off-by: Yafang Shao Signed-off-by: Eric Dumazet Thanks.