aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_minisocks.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-01-17 14:23:37 -0500
committerDavid S. Miller <davem@davemloft.net>2019-01-18 01:19:05 -0500
commit3a9a57f637943404920a8945323dc733845e697c (patch)
treed53eb3d9c83181f90662054ae5029b96a465f81a /net/ipv4/tcp_minisocks.c
parentb9e2e689aab293c3da0ceac0921449a07b692f1f (diff)
tcp: move snd_cwnd & snd_cwnd_cnt init to tcp_disconnect()
Passive connections can inherit proper value by cloning, if we make sure all listeners have the proper values there. tcp_disconnect() was setting snd_cwnd to 2, which seems quite obsolete since IW10 adoption. Also remove an obsolete comment. 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.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index 35906b44e2cf..ca96e7da99b6 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -490,14 +490,6 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
490 newtp->last_oow_ack_time = 0; 490 newtp->last_oow_ack_time = 0;
491 newtp->total_retrans = req->num_retrans; 491 newtp->total_retrans = req->num_retrans;
492 492
493 /* So many TCP implementations out there (incorrectly) count the
494 * initial SYN frame in their delayed-ACK and congestion control
495 * algorithms that we must have the following bandaid to talk
496 * efficiently to them. -DaveM
497 */
498 newtp->snd_cwnd = TCP_INIT_CWND;
499 newtp->snd_cwnd_cnt = 0;
500
501 /* There's a bubble in the pipe until at least the first ACK. */ 493 /* There's a bubble in the pipe until at least the first ACK. */
502 newtp->app_limited = ~0U; 494 newtp->app_limited = ~0U;
503 495