Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38D93C43387 for ; Thu, 17 Jan 2019 19:23:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0751820868 for ; Thu, 17 Jan 2019 19:23:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Dhl0nXwK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728346AbfAQTXt (ORCPT ); Thu, 17 Jan 2019 14:23:49 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41441 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726811AbfAQTXt (ORCPT ); Thu, 17 Jan 2019 14:23:49 -0500 Received: by mail-pf1-f195.google.com with SMTP id b7so5290123pfi.8 for ; Thu, 17 Jan 2019 11:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=U6J7DaDD+TWl71EheTK3yf79nF4SvoyVf58QfBgAUs4=; b=Dhl0nXwKdHLvHeXAuVPSGU48CwiZXQ3iFDLk/Pz+RiDmncoXhpeqbpLKhZUf3A17J0 0YzOAte/qb7kyBlw7/egVNqJDGnDi2KoavVYcKf8nr+IyIrA1agU9KdlqmBqSGTrLipH MEZDkF3oOg841ihCsxmifVO9nOCd3zdZiA4UevK1R1206SvdbNOTk0+izVgq7Okqq0pG pYmm0euRPjiHrWvVAJLHT40A08MWz4oLkxmYLzKyyZl0IypjSJyx/AWrnO6opIjlNnvw Ioyd+UdKKf5IGhNUzUgFByyReujmR8xhOrA4jAk6NVp8pcUvOb4C0vbQHapNqU7d2b3d jhjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=U6J7DaDD+TWl71EheTK3yf79nF4SvoyVf58QfBgAUs4=; b=Nqi1p3oOpkdMGnlifSYR4Io5fdKPGXvnEJ33tVU2nkziGwFP+EP+wUkYzEHtkHsSRu GQswe2mRhFsL/wzSGcgf1t9RWlXeszJHHTch+vGZsXFGMGjD/XuTxsOFlQJsp4cuR7yq gRhOMH8sD/ZVVvkWDGO1auv1xScfHLE696KMNGs8zFJUuvWZybyL47UX7OkEKARMFGrZ CXCysnl+w+bU89bbKwMxjJ1NrGWCgDpzDDiHht+UKqm5M+qnweTUBQF+KKRYRrNtmfpy 1JJzeB1x/QhTq/Cux7OrSwkikhu/Frv5DYPWJOFPxj2REJnLRCL82ENcTMk8BTGfJQEb KAJQ== X-Gm-Message-State: AJcUukfRt/os6ddJevobvZGJrCIf8/yr1dmM7Gf6z3uyv5gYE4GKEiFk 4gQWnrPfLMm3EJFlU//q5uBTpy5NdMY= X-Google-Smtp-Source: ALg8bN6B3VVFiyEbiE4yiw2ew/SI2G011H47GMG21lhs6uRliigT8+4TGWLJyuBaIE2CyP+BeXcntA== X-Received: by 2002:a62:33c1:: with SMTP id z184mr16122802pfz.104.1547753028243; Thu, 17 Jan 2019 11:23:48 -0800 (PST) Received: from localhost ([2620:15c:2c4:201:f5a:7eca:440a:3ead]) by smtp.gmail.com with ESMTPSA id l5sm7628777pgu.86.2019.01.17.11.23.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 11:23:47 -0800 (PST) From: Eric Dumazet To: "David S . Miller" Cc: netdev , Soheil Hassas Yeganeh , Neal Cardwell , Yuchung Cheng , Eric Dumazet , Eric Dumazet Subject: [PATCH net-next 01/11] tcp: do not set snd_ssthresh in tcp_create_openreq_child() Date: Thu, 17 Jan 2019 11:23:32 -0800 Message-Id: <20190117192342.71126-2-edumazet@google.com> X-Mailer: git-send-email 2.20.1.321.g9e740568ce-goog In-Reply-To: <20190117192342.71126-1-edumazet@google.com> References: <20190117192342.71126-1-edumazet@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org New sockets get the field set to TCP_INFINITE_SSTHRESH in tcp_init_sock() In case a socket had this field changed and transitions to TCP_LISTEN state, tcp_disconnect() also makes sure snd_ssthresh is set to TCP_INFINITE_SSTHRESH. So a listener has this field set to TCP_INFINITE_SSTHRESH already. Signed-off-by: Eric Dumazet --- net/ipv4/tcp_minisocks.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 12affb7864d981a6494059232c4965aaee756803..0cffa5937b1261984c3986b107220af495264437 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c @@ -488,7 +488,6 @@ struct sock *tcp_create_openreq_child(const struct sock *sk, newtp->packets_out = 0; newtp->retrans_out = 0; newtp->sacked_out = 0; - newtp->snd_ssthresh = TCP_INFINITE_SSTHRESH; newtp->tlp_high_seq = 0; newtp->lsndtime = tcp_jiffies32; newsk->sk_txhash = treq->txhash; -- 2.20.1.321.g9e740568ce-goog