aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-01-17 14:23:40 -0500
committerDavid S. Miller <davem@davemloft.net>2019-01-18 01:19:05 -0500
commit6cda8b7493ac323c3b58a9a897abc0e6432d5a1d (patch)
tree4cfbfc24e0e898605ca44992d1f8443c7a76f33c /net/ipv4/tcp.c
parent5c701549c9a653a4335dbb2aecb4935de442b87d (diff)
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 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 551ad8604bea..5f15fcc9612a 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -2609,6 +2609,9 @@ int tcp_disconnect(struct sock *sk, int flags)
2609 tp->sacked_out = 0; 2609 tp->sacked_out = 0;
2610 tp->tlp_high_seq = 0; 2610 tp->tlp_high_seq = 0;
2611 tp->last_oow_ack_time = 0; 2611 tp->last_oow_ack_time = 0;
2612 /* There's a bubble in the pipe until at least the first ACK. */
2613 tp->app_limited = ~0U;
2614
2612 2615
2613 /* Clean up fastopen related fields */ 2616 /* Clean up fastopen related fields */
2614 tcp_free_fastopen_req(tp); 2617 tcp_free_fastopen_req(tp);