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>
This commit is contained in:

committed by
David S. Miller

parent
5d83676462
commit
5c701549c9
@@ -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);
|
||||
|
Reference in New Issue
Block a user