[IPV4]: Make tcp_input_metrics() get minimum RTO via tcp_rto_min()
authorSatoru SATOH <satoru.satoh@gmail.com>
Sun, 16 Dec 2007 22:00:19 +0000 (14:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2007 22:00:19 +0000 (14:00 -0800)
tcp_input_metrics() refers to the built-time constant TCP_RTO_MIN
regardless of configured minimum RTO with iproute2.

Signed-off-by: Satoru SATOH <satoru.satoh@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c

index b9e429d2d1de5f035137a55174324169b64a9e70..889c89362bfcb303dac3a760bc4b3d60d6b4cbf6 100644 (file)
@@ -923,7 +923,7 @@ static void tcp_init_metrics(struct sock *sk)
        }
        if (dst_metric(dst, RTAX_RTTVAR) > tp->mdev) {
                tp->mdev = dst_metric(dst, RTAX_RTTVAR);
-               tp->mdev_max = tp->rttvar = max(tp->mdev, TCP_RTO_MIN);
+               tp->mdev_max = tp->rttvar = max(tp->mdev, tcp_rto_min(sk));
        }
        tcp_set_rto(sk);
        tcp_bound_rto(sk);