Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8845539ybl; Fri, 17 Jan 2020 02:05:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxF6A2hedGfArG24NSbd2/9OTMEb4Oh88pJ4NkIrxSGhncfdSmYp1T45MwrH2vZmsdPmx85 X-Received: by 2002:a05:6808:3d0:: with SMTP id o16mr2840497oie.79.1579255525827; Fri, 17 Jan 2020 02:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579255525; cv=none; d=google.com; s=arc-20160816; b=tvoH7h/sFLzXmCmiLjIal5TvZlO7+eBxjKSVVDBs5Q/tdUkO671+4mXkakoyP4fe26 2kJ1IuRm5vec5QG382F5c6y4KL0kcocjp5FQ42ruNrUhnRZarqUT+u/etK7Z607tGmD6 0BI9m0SordQp098+0zaIdQMoRclKBZu88iuJtQtTIyowFp6KflS/6B7jCCfGuYqz4Acb v7gbXFJhjjzMvt6KXMHgbFcetyfeLqTR3wOMi6qYPYEh+1K0fwv0+msbqnb9qCHLi9AS 9YbsGV2RhwVi3sE3Wf4OwskqCjDEfJn6jbOcHLnmspR5OAAUP89kHtQY6OCRg9thCmeA DUwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=2GKe2/8hClg1xcLwD4IyGpv4fNFighChrmmKdZGJ2Og=; b=plvUpSwjH0aQAd6RcE/88aXdBFNABdMuyq1ODFsOSdMvZ14vL2KAwNR4rsAtFhJc5M qy8aWUBEmPxb0cwlKhTdk3wDYlv0JpQfcCqntf42GvefYcabxepYnjARwBC2ssYDzvYy OHDmL4+tf3Tk5s5SH55/+NhXKJyx6or6PorHPs5f8BIzISS2HueWTNl9gw7fqFOPTys0 JkZ213PMvtHTDNY39UN131dPyY61n9CTtAaiVOwtySldo0/FsQlrXrAotnjFKKDKCGI6 8I8YPgG8X16IXDsSSDrYD1pAWrtmkKuRjFkOPMZfMIaft8lCMybsO83g7M0MFZf1Z30p i/jw== 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 u12si14690594otq.51.2020.01.17.02.05.13; Fri, 17 Jan 2020 02:05:25 -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; 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 S1727531AbgAQKD6 (ORCPT + 99 others); Fri, 17 Jan 2020 05:03:58 -0500 Received: from mail.wangsu.com ([123.103.51.198]:46433 "EHLO wangsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726812AbgAQKD6 (ORCPT ); Fri, 17 Jan 2020 05:03:58 -0500 Received: from 137.localdomain (unknown [59.61.78.232]) by app1 (Coremail) with SMTP id xjNnewAXMpqDhiFeeTcaAA--.1346S2; Fri, 17 Jan 2020 18:03:48 +0800 (CST) From: Pengcheng Yang To: edumazet@google.com, davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pengcheng Yang Subject: [PATCH] tcp: Use REXMIT_NEW instead of 2 Date: Fri, 17 Jan 2020 18:03:45 +0800 Message-Id: <1579255425-29273-1-git-send-email-yangpc@wangsu.com> X-Mailer: git-send-email 1.8.3.1 X-CM-TRANSID: xjNnewAXMpqDhiFeeTcaAA--.1346S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Gw4rAry5ZFyxGrW8AFyrZwb_yoWxKrX_C3 ykAaykCw48Zrs2yan8u3yYqr1SqayxuFs3ur1fJa47Aw1kJF4rJws5AryDXrs7uFs7JryD X3yqq34FvFy3ujkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wA2ocxC64kI II0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7 xvwVC0I7IYx2IY6xkF7I0E14v26rxl6s0DM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84AC jcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrV ACY4xI64kE6c02F40Ex7xfMcIj6x8ErcxFaVAv8VW8GwAv7VCY1x0262k0Y48FwI0_Jr0_ Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2 IErcIFxwCY02Avz4vE14v_Gw1l42xK82IYc2Ij64vIr41l42xK82IY6x8ErcxFaVAv8VW8 GwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6Fyj6rWUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E 14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x0JjxManUUUUU= X-CM-SenderInfo: p1dqw1nf6zt0xjvxhudrp/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use REXMIT_NEW instead of the confusing 2 in tcp_xmit_recovery() Signed-off-by: Pengcheng Yang --- net/ipv4/tcp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 5347ab2..de07439 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -3554,7 +3554,7 @@ static void tcp_xmit_recovery(struct sock *sk, int rexmit) if (rexmit == REXMIT_NONE || sk->sk_state == TCP_SYN_SENT) return; - if (unlikely(rexmit == 2)) { + if (unlikely(rexmit == REXMIT_NEW)) { __tcp_push_pending_frames(sk, tcp_current_mss(sk), TCP_NAGLE_OFF); if (after(tp->snd_nxt, tp->high_seq)) -- 1.8.3.1