X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fipv4%2Ftcp_yeah.c;h=bf8321d6f2ef2db596f846d4627d7bfc7b80ee15;hb=0ab9b883b36507e4ca4e5a0883fcca25c8a9e32c;hp=05c3b6f0e8e1cfa4b6f0530c826df9f5402dfe7d;hpb=408133e9dca2b94c64b917b144ec816df913a94e;p=pandora-kernel.git diff --git a/net/ipv4/tcp_yeah.c b/net/ipv4/tcp_yeah.c index 05c3b6f0e8e1..bf8321d6f2ef 100644 --- 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 = {