diff options
author | Eric Dumazet <edumazet@google.com> | 2019-01-17 11:23:39 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-17 22:19:05 -0800 |
commit | 5c701549c9a653a4335dbb2aecb4935de442b87d (patch) | |
tree | 79853fe73968b8f47942df6abdae610424f1e127 /net/ipv4/tcp.c | |
parent | 5d836764620dfa3f243bdf5a678db300341195ef (diff) |
tcp: move retrans_out, sacked_out, tlp_high_seq, last_oow_ack_time init to tcp_disconnect()
If we make sure all listeners have these fields cleared, then a clone
will also inherit zero values.
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 3f99ad92eaed..551ad8604bea 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -2605,6 +2605,10 @@ int tcp_disconnect(struct sock *sk, int flags) tp->duplicate_sack[0].end_seq = 0; tp->dsack_dups = 0; tp->reord_seen = 0; + tp->retrans_out = 0; + tp->sacked_out = 0; + tp->tlp_high_seq = 0; + tp->last_oow_ack_time = 0; /* Clean up fastopen related fields */ tcp_free_fastopen_req(tp); |