]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/tcp_hybla.c
[PATCH] Correct rtc_wkalrm comments
[linux-2.6-omap-h63xx.git] / net / ipv4 / tcp_hybla.c
index 77add63623df2a1034a21bfdb6fbaddf82385a71..40dbb38775101c02b4c285b887f13d1ff0aecebb 100644 (file)
@@ -100,12 +100,12 @@ static void hybla_cong_avoid(struct sock *sk, u32 ack, u32 rtt,
                ca->minrtt = tp->srtt;
        }
 
+       if (!tcp_is_cwnd_limited(sk, in_flight))
+               return;
+
        if (!ca->hybla_en)
                return tcp_reno_cong_avoid(sk, ack, rtt, in_flight, flag);
 
-       if (in_flight < tp->snd_cwnd)
-               return;
-
        if (ca->rho == 0)
                hybla_recalc_param(sk);