diff options
author | Eric Dumazet <edumazet@google.com> | 2019-01-17 20:23:32 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-18 07:19:04 +0100 |
commit | b84235e291045799e100a40c485439182087bae9 (patch) | |
tree | fbf8e315b059f4b71359971f48ae912d79539214 /net/ipv4/tcp_minisocks.c | |
parent | net/mlx4: remove unneeded semicolon (diff) | |
download | linux-b84235e291045799e100a40c485439182087bae9.tar.xz linux-b84235e291045799e100a40c485439182087bae9.zip |
tcp: do not set snd_ssthresh in tcp_create_openreq_child()
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 <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 12affb7864d9..0cffa5937b12 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; |