]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv4/tcp_cong.c
[TCP]: fix congestion window update when using TSO deferal
[mirror_ubuntu-bionic-kernel.git] / net / ipv4 / tcp_cong.c
index bbf2d6624e894b927a169d92ae2be882c851b91a..0705b496c6b3117de49e34b99f86731664a109ed 100644 (file)
@@ -186,7 +186,7 @@ void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 rtt, u32 in_flight,
 {
        struct tcp_sock *tp = tcp_sk(sk);
 
-       if (in_flight < tp->snd_cwnd)
+       if (!tcp_is_cwnd_limited(sk, in_flight))
                return;
 
         if (tp->snd_cwnd <= tp->snd_ssthresh) {