projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab10fe
)
[TCP]: BIC coding bug in Linux 2.6.13
author
Stephen Hemminger
<shemminger@osdl.org>
Wed, 5 Oct 2005 19:09:31 +0000
(12:09 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 5 Oct 2005 19:09:31 +0000
(12:09 -0700)
Missing parenthesis in causes BIC to be slow in increasing congestion
window.
Spotted by Injong Rhee.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_bic.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/tcp_bic.c
b/net/ipv4/tcp_bic.c
index b940346de4e7cbc5bc724245992c07f6c0e41120..6d80e063c187f3464fe77ee52e6128183b5a8642 100644
(file)
--- a/
net/ipv4/tcp_bic.c
+++ b/
net/ipv4/tcp_bic.c
@@
-136,7
+136,7
@@
static inline void bictcp_update(struct bictcp *ca, u32 cwnd)
else if (cwnd < ca->last_max_cwnd + max_increment*(BICTCP_B-1))
/* slow start */
ca->cnt = (cwnd * (BICTCP_B-1))
- /
cwnd-ca->last_max_cwnd
;
+ /
(cwnd - ca->last_max_cwnd)
;
else
/* linear increase */
ca->cnt = cwnd / max_increment;