|
@@ -135,7 +135,8 @@ static void hstcp_cong_avoid(struct sock *sk, u32 adk, u32 rtt,
|
|
|
|
|
|
/* Do additive increase */
|
|
|
if (tp->snd_cwnd < tp->snd_cwnd_clamp) {
|
|
|
- tp->snd_cwnd_cnt += ca->ai;
|
|
|
+ /* cwnd = cwnd + a(w) / cwnd */
|
|
|
+ tp->snd_cwnd_cnt += ca->ai + 1;
|
|
|
if (tp->snd_cwnd_cnt >= tp->snd_cwnd) {
|
|
|
tp->snd_cwnd_cnt -= tp->snd_cwnd;
|
|
|
tp->snd_cwnd++;
|