From d2aab838ea7875d7f58246b80285e299b137fbf1 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 22 May 2018 11:39:59 -0700 Subject: tcp: cc improvements and fixes Change-Id: I6615bb612bcc3f795b5f822ea55209bb30ef35b5 Signed-off-by: Florin Coras --- src/vnet/tcp/tcp_newreno.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/tcp/tcp_newreno.c') diff --git a/src/vnet/tcp/tcp_newreno.c b/src/vnet/tcp/tcp_newreno.c index 7ae7f484b56..0f43d21dfde 100644 --- a/src/vnet/tcp/tcp_newreno.c +++ b/src/vnet/tcp/tcp_newreno.c @@ -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)); } } -- cgit 1.2.3-korg