diff options
Diffstat (limited to 'net/dccp/ccids/ccid3.c')
-rw-r--r-- | net/dccp/ccids/ccid3.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index 4340672a817c..278e17069322 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c | |||
@@ -460,13 +460,12 @@ done_computing_x: | |||
460 | sk->sk_write_space(sk); | 460 | sk->sk_write_space(sk); |
461 | 461 | ||
462 | /* | 462 | /* |
463 | * Update timeout interval for the nofeedback timer. | 463 | * Update timeout interval for the nofeedback timer. In order to control |
464 | * We use a configuration option to increase the lower bound. | 464 | * rate halving on networks with very low RTTs (<= 1 ms), use per-route |
465 | * This can help avoid triggering the nofeedback timer too | 465 | * tunable RTAX_RTO_MIN value as the lower bound. |
466 | * often ('spinning') on LANs with small RTTs. | ||
467 | */ | 466 | */ |
468 | hc->tx_t_rto = max_t(u32, 4 * hc->tx_rtt, (CONFIG_IP_DCCP_CCID3_RTO * | 467 | hc->tx_t_rto = max_t(u32, 4 * hc->tx_rtt, |
469 | (USEC_PER_SEC / 1000))); | 468 | USEC_PER_SEC/HZ * tcp_rto_min(sk)); |
470 | /* | 469 | /* |
471 | * Schedule no feedback timer to expire in | 470 | * Schedule no feedback timer to expire in |
472 | * max(t_RTO, 2 * s/X) = max(t_RTO, 2 * t_ipi) | 471 | * max(t_RTO, 2 * s/X) = max(t_RTO, 2 * t_ipi) |