[TCP]: fix congestion window update when using TSO deferal
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / ipv4 / tcp_htcp.c
index e47b37984e951e087cc2185b97336a5e3dadc21f..404a326ba3457ced90ef06b983c13625a1d93a66 100644 (file)
@@ -207,7 +207,7 @@ static void htcp_cong_avoid(struct sock *sk, u32 ack, u32 rtt,
        struct tcp_sock *tp = tcp_sk(sk);
        struct htcp *ca = inet_csk_ca(sk);
 
-       if (in_flight < tp->snd_cwnd)
+       if (!tcp_is_cwnd_limited(sk, in_flight))
                return;
 
         if (tp->snd_cwnd <= tp->snd_ssthresh) {