]> 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 6d80e063c187f3464fe77ee52e6128183b5a8642..5af99b3ef5d706b62c95027667fc8a7e64e0f05f 100644 (file)
@@ -27,7 +27,7 @@
                                          */
 
 static int fast_convergence = 1;
-static int max_increment = 32;
+static int max_increment = 16;
 static int low_window = 14;
 static int beta = 819;         /* = 819/1024 (BICTCP_BETA_SCALE) */
 static int low_utilization_threshold = 153;
@@ -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) {