git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tcp_yeah: don't set ssthresh below 2
[pandora-kernel.git]
/
net
/
ipv4
/
tcp_yeah.c
diff --git
a/net/ipv4/tcp_yeah.c
b/net/ipv4/tcp_yeah.c
index
05c3b6f
..
bf8321d
100644
(file)
--- a/
net/ipv4/tcp_yeah.c
+++ b/
net/ipv4/tcp_yeah.c
@@
-222,7
+222,7
@@
static u32 tcp_yeah_ssthresh(struct sock *sk) {
yeah->fast_count = 0;
yeah->reno_count = max(yeah->reno_count>>1, 2U);
- return
tp->snd_cwnd - reduction
;
+ return
max_t(int, tp->snd_cwnd - reduction, 2)
;
}
static struct tcp_congestion_ops tcp_yeah __read_mostly = {