tcp: use windowed min filter library for TCP min_rtt estimation
[cascardo/linux.git] / net / ipv4 / tcp.c
index 7dae800..e79ed17 100644 (file)
@@ -387,7 +387,7 @@ void tcp_init_sock(struct sock *sk)
 
        icsk->icsk_rto = TCP_TIMEOUT_INIT;
        tp->mdev_us = jiffies_to_usecs(TCP_TIMEOUT_INIT);
-       tp->rtt_min[0].rtt = ~0U;
+       minmax_reset(&tp->rtt_min, tcp_time_stamp, ~0U);
 
        /* So many TCP implementations out there (incorrectly) count the
         * initial SYN frame in their delayed-ACK and congestion control