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
@@ -482,12 +482,8 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,
|
||||
minmax_reset(&newtp->rtt_min, tcp_jiffies32, ~0U);
|
||||
newicsk->icsk_ack.lrcvtime = tcp_jiffies32;
|
||||
|
||||
newtp->retrans_out = 0;
|
||||
newtp->sacked_out = 0;
|
||||
newtp->tlp_high_seq = 0;
|
||||
newtp->lsndtime = tcp_jiffies32;
|
||||
newsk->sk_txhash = treq->txhash;
|
||||
newtp->last_oow_ack_time = 0;
|
||||
newtp->total_retrans = req->num_retrans;
|
||||
|
||||
/* There's a bubble in the pipe until at least the first ACK. */
|
||||
|
Reference in New Issue
Block a user