aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_minisocks.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-01-17 11:23:40 -0800
committerDavid S. Miller <davem@davemloft.net>2019-01-17 22:19:05 -0800
commit6cda8b7493ac323c3b58a9a897abc0e6432d5a1d (patch)
tree4cfbfc24e0e898605ca44992d1f8443c7a76f33c /net/ipv4/tcp_minisocks.c
parenttcp: move retrans_out, sacked_out, tlp_high_seq, last_oow_ack_time init to tcp_disconnect() (diff)
downloadlinux-dev-6cda8b7493ac323c3b58a9a897abc0e6432d5a1d.tar.xz
linux-dev-6cda8b7493ac323c3b58a9a897abc0e6432d5a1d.zip
tcp: move app_limited init to tcp_disconnect()
If we make sure all listeners have app_limited set to ~0U, then a clone will also inherit proper initial value. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv4/tcp_minisocks.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index 29fba13849a7..13f3c6444efa 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -486,9 +486,6 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
newsk->sk_txhash = treq->txhash;
newtp->total_retrans = req->num_retrans;
- /* There's a bubble in the pipe until at least the first ACK. */
- newtp->app_limited = ~0U;
-
tcp_init_xmit_timers(newsk);
newtp->write_seq = newtp->pushed_seq = treq->snt_isn + 1;