tcp: cc improvements and fixes
[vpp.git] / src / vnet / tcp / tcp_newreno.c
index 7ae7f48..0f43d21 100644 (file)
@@ -44,6 +44,8 @@ newreno_rcv_ack (tcp_connection_t * tc)
          tc->cwnd += inc * tc->snd_mss;
          tc->cwnd_acc_bytes -= inc * tc->cwnd;
        }
+      tc->cwnd = clib_min (tc->cwnd,
+                          transport_tx_fifo_size (&tc->connection));
     }
 }