aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/tcp_cubic.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/ipv4/tcp_cubic.c b/net/ipv4/tcp_cubic.c
index 15c580375002..296845be912b 100644
--- a/net/ipv4/tcp_cubic.c
+++ b/net/ipv4/tcp_cubic.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * TCP CUBIC: Binary Increase Congestion control for TCP v2.0 2 * TCP CUBIC: Binary Increase Congestion control for TCP v2.1
3 * 3 *
4 * This is from the implementation of CUBIC TCP in 4 * This is from the implementation of CUBIC TCP in
5 * Injong Rhee, Lisong Xu. 5 * Injong Rhee, Lisong Xu.
@@ -214,7 +214,9 @@ static inline void bictcp_update(struct bictcp *ca, u32 cwnd)
214 if (ca->delay_min > 0) { 214 if (ca->delay_min > 0) {
215 /* max increment = Smax * rtt / 0.1 */ 215 /* max increment = Smax * rtt / 0.1 */
216 min_cnt = (cwnd * HZ * 8)/(10 * max_increment * ca->delay_min); 216 min_cnt = (cwnd * HZ * 8)/(10 * max_increment * ca->delay_min);
217 if (ca->cnt < min_cnt) 217
218 /* use concave growth when the target is above the origin */
219 if (ca->cnt < min_cnt && t >= ca->bic_K)
218 ca->cnt = min_cnt; 220 ca->cnt = min_cnt;
219 } 221 }
220 222
@@ -400,4 +402,4 @@ module_exit(cubictcp_unregister);
400MODULE_AUTHOR("Sangtae Ha, Stephen Hemminger"); 402MODULE_AUTHOR("Sangtae Ha, Stephen Hemminger");
401MODULE_LICENSE("GPL"); 403MODULE_LICENSE("GPL");
402MODULE_DESCRIPTION("CUBIC TCP"); 404MODULE_DESCRIPTION("CUBIC TCP");
403MODULE_VERSION("2.0"); 405MODULE_VERSION("2.1");