Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1115667imm; Wed, 1 Aug 2018 10:26:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeaeJOt+eVDrIBwQTBRM1EcfUDcHlqedOvbNd8uZzmGT1CWm3v+OHUdJN0hPLjsYfgw0NOK X-Received: by 2002:a62:6746:: with SMTP id b67-v6mr27787899pfc.243.1533144375150; Wed, 01 Aug 2018 10:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144375; cv=none; d=google.com; s=arc-20160816; b=TNhWUWh1e4Pu/t1jHAJgWixFG2a1Zf60+s6HJ/lVLNzqYxTBLzlJ8pKieXbFYvIBpQ N5d35Q9MEMVkiGOiU2SXdJy42C/L9Fqnb94MoScMJUDA7JEVztlLb5CEjWbcLQ46TBzO dUq3u1wKib0/SPDqWEbdCkNNU76959pVb1z8GpunlxBX3iqrfsiPwFQShV6b8NcMO8eI vUi7b8c+cQhTxq1z3tmwP697fSqEBP/6pCMDUm6nV4DhzDPgEPzpxJOAT9L7MzQDE6YG kef4CFe1w0bPZeLzkleFkAJfwM1SNaPANW93o5FfRwl/AcPYEF8tGsF8O59ZE1o+9qdT HXmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=LO/zn1QbMiEFd12YbkGaflwqRNz8cU7nuta/M5FsPoY=; b=fG8ajlM/XnOnJ213zPDYES0PiRwjbjEEEbYumYNmIC7sj7OocbItxRMqQNe3EBlJmY s5I3RIEY6SnzeXU+5zN80KIZnaiwqWc9Ny6Z5l7OuoJSLALsKjjLAYsGgD3Lee/4eVEJ GJ/DzEQJdiFDlBb1jhibf7btrkUFC1vxt8qFBTbMooW+vGiBEzBvoCBk0WI9xdj7m8Qk /n20KhTPbUkUPLt5wzDwUaHg7Dc4X5JPzmYXrRjVCURGoyGOyp7ATFCzgyvDSc9x4F5d n7VsRDvIs4D3NvDV0YlWJ0in+AlTvnzLPY2yJfn5bclIZhNSkmGxklwUitMMHH/e3BNu Ud9w== 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 3-v6si13654322plv.314.2018.08.01.10.26.00; Wed, 01 Aug 2018 10:26:15 -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; 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 S2406481AbeHATKr (ORCPT + 99 others); Wed, 1 Aug 2018 15:10:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51070 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405484AbeHATKr (ORCPT ); Wed, 1 Aug 2018 15:10:47 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id F06EECC9; Wed, 1 Aug 2018 17:24:04 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , Soheil Hassas Yeganeh , Yuchung Cheng , Neal Cardwell , "David S. Miller" Subject: [PATCH 4.14 244/246] tcp: do not aggressively quick ack after ECN events Date: Wed, 1 Aug 2018 18:52:34 +0200 Message-Id: <20180801165023.413932628@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Dumazet [ Upstream commit 522040ea5fdd1c33bbf75e1d7c7c0422b96a94ef ] ECN signals currently forces TCP to enter quickack mode for up to 16 (TCP_MAX_QUICKACKS) following incoming packets. We believe this is not needed, and only sending one immediate ack for the current packet should be enough. This should reduce the extra load noticed in DCTCP environments, after congestion events. This is part 2 of our effort to reduce pure ACK packets. Signed-off-by: Eric Dumazet Acked-by: Soheil Hassas Yeganeh Acked-by: Yuchung Cheng Acked-by: Neal Cardwell Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv4/tcp_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -259,7 +259,7 @@ static void __tcp_ecn_check_ce(struct tc * it is probably a retransmit. */ if (tp->ecn_flags & TCP_ECN_SEEN) - tcp_enter_quickack_mode((struct sock *)tp, TCP_MAX_QUICKACKS); + tcp_enter_quickack_mode((struct sock *)tp, 1); break; case INET_ECN_CE: if (tcp_ca_needs_ecn((struct sock *)tp)) @@ -267,7 +267,7 @@ static void __tcp_ecn_check_ce(struct tc if (!(tp->ecn_flags & TCP_ECN_DEMAND_CWR)) { /* Better not delay acks, sender can have a very low cwnd */ - tcp_enter_quickack_mode((struct sock *)tp, TCP_MAX_QUICKACKS); + tcp_enter_quickack_mode((struct sock *)tp, 1); tp->ecn_flags |= TCP_ECN_DEMAND_CWR; } tp->ecn_flags |= TCP_ECN_SEEN;