mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 10:13:57 +08:00
[IPV4]: Make tcp_input_metrics() get minimum RTO via tcp_rto_min()
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>
This commit is contained in:
parent
cf6fc4a924
commit
488faa2ae3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user