Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6271917imu; Mon, 21 Jan 2019 06:10:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN7VIJue85Fq1H27B1UB7uJooeWIDRQJVjLNPrwJZIbSqbmGjh7jU3TeKTne9SaEfCTDwRUr X-Received: by 2002:a63:dc54:: with SMTP id f20mr28583404pgj.410.1548079843369; Mon, 21 Jan 2019 06:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548079843; cv=none; d=google.com; s=arc-20160816; b=04Sa/4Apr1+a97+qrimejJ7aCsEp+L9DAwDoYeDHWHHdHoSALwofzKaopP2rPoeXfy iOEiXZ0OClRGcwCUHzu50q47cZxUzGqlTdm38gwl9c4Ykhozpp1ofrSN0Zdlepc8Y6OG 2vQU7PbNynMfEVWOn1OkzuaEvEiiYeQ1wUKkJmTAwF0v/ItYhJ+4InRhLg6cYHWlXhM8 8KubzDgXOpWA1nxCOL4wJ1shnGCnPuYO2ku1NcDyHW2uETTqVBZ9cZoBJEDwQ+nNlfmP +TJnXwJybEpaIPEnusIEeKpYln4zcX57woeijqGhxmZVCsSQg1YvYFnH2cQ/UTnVTYJ4 SfWQ== 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=YzWd4BTD4qqXPEeP9nai4I1UjyTolRUXxOQ4s+oGpKY=; b=jHk+jQpo/W96o/5q1bxm7GDj7xqhBQkgQes7IHff5afbYSl88Nlo/IeuQijV5mvHZ3 nyrK4vqmlTdG9bMSNQKGmEYPcGsqRCEn4WRJtsKWneFS1+kNaIyy1E4yyFu0TIV3HSTn esgvGXMgLM2pZZ/hzxu/sC1ScdzzPAOUymvOjWFLQy3QyRkwlERCSkQNV37YVZbHobXt Mjndc3l6v1Pm0JW5hpjF9VRI1SXqFX0cfIc0furKvpsT1fWTwVXfrM0tJSCsDq2LVZGr Go/NMfehPqTFyq4gCCFl1f6OtJrMo+HaqXSQmsWWpYVVNB4LxmvzJOIs2B04zfqNW9AN isFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vlKgX36b; 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 o1si12689078pld.79.2019.01.21.06.10.26; Mon, 21 Jan 2019 06:10:43 -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=vlKgX36b; 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 S1731650AbfAUOIG (ORCPT + 99 others); Mon, 21 Jan 2019 09:08:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:44960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732123AbfAUN7E (ORCPT ); Mon, 21 Jan 2019 08:59:04 -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 8154E2084C; Mon, 21 Jan 2019 13:59:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548079144; bh=4BfKnDs5lQRLSzJhGEFRV2qZT5AXAHEAgqQdmf3by7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vlKgX36b8SzlgX4TBeYBxl3Gf5+Xi8c46L1akykJ7aWMMMIH58TXyFYOjqe0YEExZ yxpgtZd/egWYkWSFsRP7jXYENNqw+Pl/GIDfvYoPbBDKTnz9fZED48pklpzWfgnYKW Az6x41jgThdGMo7NOSJOOhs33u3XJkgz9sst5eJQ= 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.19 23/99] tcp: change txhash on SYN-data timeout Date: Mon, 21 Jan 2019 14:48:15 +0100 Message-Id: <20190121134914.788288980@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190121134913.924726465@linuxfoundation.org> References: <20190121134913.924726465@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.19-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 @@ -224,7 +224,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;