diff options
author | Florin Coras <fcoras@cisco.com> | 2020-01-15 20:18:35 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-12 15:59:46 +0000 |
commit | 4d5da6c5eded39ea3f1d7bb721e8bc598e689e0d (patch) | |
tree | e2c00193925149744e674bcfce7a4d2e790c2e9f /src | |
parent | 0347bf689bd6a671f63ffd5bc5eeddf6bb47b1a9 (diff) |
tcp: fix rxt delivered without sacks
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I69c245cb0e3f6d599a3270a485fa0a5845cde8eb
(cherry picked from commit 56cef059ef44434efe26d523caec1bb0af9c1d3b)
Diffstat (limited to 'src')
-rwxr-xr-x | src/vnet/tcp/tcp_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |