]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/tcp_illinois.c
[TCP] illinois: Incorrect beta usage
[linux-2.6-omap-h63xx.git] / net / ipv4 / tcp_illinois.c
index 64f1cbaf96e8a487bba6edc9398aeff535c2ec79..5aa5f5496d6d79e4553fcb2cdf0f5f8283f33e45 100644 (file)
@@ -298,7 +298,7 @@ static u32 tcp_illinois_ssthresh(struct sock *sk)
        struct illinois *ca = inet_csk_ca(sk);
 
        /* Multiplicative decrease */
-       return max((tp->snd_cwnd * ca->beta) >> BETA_SHIFT, 2U);
+       return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->beta) >> BETA_SHIFT), 2U);
 }