git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
net
/
ipv4
/
tcp_highspeed.c
diff --git
a/net/ipv4/tcp_highspeed.c
b/net/ipv4/tcp_highspeed.c
index
ba7c63c
..
e0e9d13
100644
(file)
--- a/
net/ipv4/tcp_highspeed.c
+++ b/
net/ipv4/tcp_highspeed.c
@@
-135,11
+135,10
@@
static void hstcp_cong_avoid(struct sock *sk, u32 adk, u32 rtt,
/* Do additive increase */
if (tp->snd_cwnd < tp->snd_cwnd_clamp) {
/* Do additive increase */
if (tp->snd_cwnd < tp->snd_cwnd_clamp) {
- /* cwnd = cwnd + a(w) / cwnd */
- tp->snd_cwnd_cnt += ca->ai + 1;
+ tp->snd_cwnd_cnt += ca->ai;
if (tp->snd_cwnd_cnt >= tp->snd_cwnd) {
if (tp->snd_cwnd_cnt >= tp->snd_cwnd) {
- tp->snd_cwnd_cnt -= tp->snd_cwnd;
tp->snd_cwnd++;
tp->snd_cwnd++;
+ tp->snd_cwnd_cnt -= tp->snd_cwnd;
}
}
}
}
}
}