Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6286346imu; Mon, 21 Jan 2019 06:24:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN5GOUHql+vn1MbdH5YaGvs1ZPnAoRcWFao+0wVu+ug1UeqmziUdcxgU77v62mOZtXWkC1I4 X-Received: by 2002:a17:902:8a95:: with SMTP id p21mr30989279plo.183.1548080652797; Mon, 21 Jan 2019 06:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548080652; cv=none; d=google.com; s=arc-20160816; b=c4DSThKynNgrgsk+ENE3KKb9DczK1V+ev5nRv6XUFPA99X5UuXQznKQrTDZw2KzTFt /qCuTUGpA+c502LYy1SNHkgB3MJehtvNlGk4l+jmsYVHWcKIgCpcGTZ8kDFedEwx2iNW 7+Y+8y748Q6w7fcMC/tJLRF03sDFB6gMaxRopgDQm78vk2u5JKPsHPsMrncWt9SQNIlY ya6q240ne1Wrr13fv4TftNE/CmwvTp3rHSa96BUOJjKwmIBi2U01uWcAxuhE9PaxAUe/ BCpnbhdwswOHajJg/rtWiO2DNEP4c82d3wS7Ef4R0g60ox8p4soxOU6LV5LHGXWTNMWO nvOA== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OLa0en9aCR/R7eXHzFuh45bYEZcqFb0PlE73xjV1/Ow=; b=koL2xVJi0pQGLB1+Q8J2U1pD3BTZRnRebvbtSYGDUXflkoHboXQM0xmZumdJM+zEue IFxTN6gjM151gE+nFeePfCQJvmaOVfYhd273u3dHs/UvX4hr/vzRZuhfCG8jjqmV/kS4 m676WN3rTXs4wFkpQOJGAos4Yfe7d7nOPlbXT8pgLs7OpD9bIPgT8SqMQIzB5+ZP2N8b pfK5sgWMrYqxPC8hYR9luck28djnDNqwYF5rxmzatZS6eCaTIpaoMrxhcQgxamCONxHn tdO7u2k2YRec4E0lWMGFDDXrcyZc/JzBj8QntdJhFIPB608O61mdFcJu4Xq2s06ey0oq erNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eALMCZ2B; 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 s123si12875884pfb.274.2019.01.21.06.23.57; Mon, 21 Jan 2019 06:24:12 -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=@kernel.org header.s=default header.b=eALMCZ2B; 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 S1729337AbfAUNqt (ORCPT + 99 others); Mon, 21 Jan 2019 08:46:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:55660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729311AbfAUNqo (ORCPT ); Mon, 21 Jan 2019 08:46:44 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1600720870; Mon, 21 Jan 2019 13:46:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548078403; bh=sjFAX/dMMQE36hbbXOfX8hj4bStcmbRIn/O2h1iaMBc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eALMCZ2BvwbvW87jdtviLY14wnQs/y79WjZoxc2+qswXX6GHqF4uNbHpRk1a4XmU/ bab3mLKScFHVLMFD8f1xhIF+e10biV3yyEPd9O+wCibXo3Rs5WfwkUVkAD5sPMuGh1 baKExF3qjoM8LMexJs+SiJ/b+XAZZ/bEqYqZhNOQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yuchung Cheng , Neal Cardwell , "David S. Miller" Subject: [PATCH 4.20 020/111] tcp: change txhash on SYN-data timeout Date: Mon, 21 Jan 2019 14:42:14 +0100 Message-Id: <20190121122458.018023071@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190121122455.819406896@linuxfoundation.org> References: <20190121122455.819406896@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yuchung Cheng [ Upstream commit c5715b8fabfca0ef85903f8bad2189940ed41cc8 ] Previously upon SYN timeouts the sender recomputes the txhash to try a different path. However this does not apply on the initial timeout of SYN-data (active Fast Open). Therefore an active IPv6 Fast Open connection may incur one second RTO penalty to take on a new path after the second SYN retransmission uses a new flow label. This patch removes this undesirable behavior so Fast Open changes the flow label just like the regular connections. This also helps avoid falsely disabling Fast Open on the sender which triggers after two consecutive SYN timeouts on Fast Open. Signed-off-by: Yuchung Cheng Reviewed-by: Neal Cardwell Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv4/tcp_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c @@ -226,7 +226,7 @@ static int tcp_write_timeout(struct sock if ((1 << sk->sk_state) & (TCPF_SYN_SENT | TCPF_SYN_RECV)) { if (icsk->icsk_retransmits) { dst_negative_advice(sk); - } else if (!tp->syn_data && !tp->syn_fastopen) { + } else { sk_rethink_txhash(sk); } retry_until = icsk->icsk_syn_retries ? : net->ipv4.sysctl_tcp_syn_retries;