Commit a0070e46 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

tcp: do not clear srtt_us in tcp_create_openreq_child



All listeners have this field cleared already, since tcp_disconnect()
clears it and newly created sockets have also a zero value here.

So a clone will inherit a zero value here.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eb2c80ca
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -479,7 +479,6 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,

	tcp_init_wl(newtp, treq->rcv_isn);

	newtp->srtt_us = 0;
	newtp->mdev_us = jiffies_to_usecs(TCP_TIMEOUT_INIT);
	minmax_reset(&newtp->rtt_min, tcp_jiffies32, ~0U);
	newicsk->icsk_ack.lrcvtime = tcp_jiffies32;