]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv4/tcp_bic.c
[TCP]: fix congestion window update when using TSO deferal
[mirror_ubuntu-bionic-kernel.git] / net / ipv4 / tcp_bic.c
index ae35e06090476a88bc9b6b6a4ba963d1aff9af9b..5af99b3ef5d706b62c95027667fc8a7e64e0f05f 100644 (file)
@@ -217,7 +217,7 @@ static void bictcp_cong_avoid(struct sock *sk, u32 ack,
 
        bictcp_low_utilization(sk, data_acked);
 
-       if (in_flight < tp->snd_cwnd)
+       if (!tcp_is_cwnd_limited(sk, in_flight))
                return;
 
        if (tp->snd_cwnd <= tp->snd_ssthresh) {