diff options
Diffstat (limited to 'net/ipv4/tcp_cubic.c')
-rw-r--r-- | net/ipv4/tcp_cubic.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ipv4/tcp_cubic.c b/net/ipv4/tcp_cubic.c index 7172c129ff19..90d92dd4cf13 100644 --- a/net/ipv4/tcp_cubic.c +++ b/net/ipv4/tcp_cubic.c | |||
@@ -270,6 +270,13 @@ static inline void bictcp_update(struct bictcp *ca, u32 cwnd) | |||
270 | ca->cnt = 100 * cwnd; /* very small increment*/ | 270 | ca->cnt = 100 * cwnd; /* very small increment*/ |
271 | } | 271 | } |
272 | 272 | ||
273 | /* | ||
274 | * The initial growth of cubic function may be too conservative | ||
275 | * when the available bandwidth is still unknown. | ||
276 | */ | ||
277 | if (ca->loss_cwnd == 0 && ca->cnt > 20) | ||
278 | ca->cnt = 20; /* increase cwnd 5% per RTT */ | ||
279 | |||
273 | /* TCP Friendly */ | 280 | /* TCP Friendly */ |
274 | if (tcp_friendliness) { | 281 | if (tcp_friendliness) { |
275 | u32 scale = beta_scale; | 282 | u32 scale = beta_scale; |