From 4d5da6c5eded39ea3f1d7bb721e8bc598e689e0d Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Wed, 15 Jan 2020 20:18:35 +0000 Subject: tcp: fix rxt delivered without sacks Type: fix Signed-off-by: Florin Coras Change-Id: I69c245cb0e3f6d599a3270a485fa0a5845cde8eb (cherry picked from commit 56cef059ef44434efe26d523caec1bb0af9c1d3b) --- src/vnet/tcp/tcp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index 17af200f67c..bd5a9664a58 100755 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -1483,7 +1483,7 @@ tcp_cc_handle_event (tcp_connection_t * tc, tcp_rate_sample_t * rs, tc->rcv_dupacks += 1; TCP_EVT (TCP_EVT_DUPACK_RCVD, tc, 1); } - tc->rxt_delivered = clib_max (tc->rxt_delivered + tc->bytes_acked, + tc->rxt_delivered = clib_min (tc->rxt_delivered + tc->bytes_acked, tc->snd_rxt_bytes); if (is_dack) tc->prr_delivered += clib_min (tc->snd_mss, -- cgit 1.2.3-korg