mirror of https://gitee.com/openkylin/linux.git
tcp: do not clear packets_out in tcp_create_openreq_child()
New sockets have this field cleared, and tcp_disconnect() calls tcp_write_queue_purge() which among other things also clear tp->packets_out So a listener is guaranteed to have this field cleared. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6a408147ea
commit
eb2c80ca87
|
@ -484,7 +484,6 @@ 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->packets_out = 0;
|
||||
newtp->retrans_out = 0;
|
||||
newtp->sacked_out = 0;
|
||||
newtp->tlp_high_seq = 0;
|
||||
|
|
Loading…
Reference in New Issue