* [PATCH] [IPV4]: Make tcp_input_metrics() get minimum RTO via tcp_rto_min()
@ 2007-12-15 2:44 Satoru SATOH
2007-12-16 22:00 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Satoru SATOH @ 2007-12-15 2:44 UTC (permalink / raw)
To: netdev
tcp_input_metrics() refers to the built-time constant TCP_RTO_MIN
regardless of configured minimum RTO with iproute2.
The following fixes that.
Signed-off-by: Satoru SATOH <satoru.satoh@gmail.com>
net/ipv4/tcp_input.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index b9e429d..889c893 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-16 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-15 2:44 [PATCH] [IPV4]: Make tcp_input_metrics() get minimum RTO via tcp_rto_min() Satoru SATOH
2007-12-16 22:00 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox