From 55e556c93df001617863494e873498d9c0b7c172 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 23 Oct 2020 10:45:48 -0700 Subject: tcp: remove snd_una_max Type: improvement Signed-off-by: Florin Coras Change-Id: I03f923053499f219035c9b7b6640fc575568d474 --- src/vnet/tcp/tcp_timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/tcp/tcp_timer.h') diff --git a/src/vnet/tcp/tcp_timer.h b/src/vnet/tcp/tcp_timer.h index 45cf38263be..4668c79cabf 100644 --- a/src/vnet/tcp/tcp_timer.h +++ b/src/vnet/tcp/tcp_timer.h @@ -54,7 +54,7 @@ tcp_timer_update (tcp_timer_wheel_t * tw, tcp_connection_t * tc, u8 timer_id, always_inline void tcp_retransmit_timer_set (tcp_timer_wheel_t * tw, tcp_connection_t * tc) { - ASSERT (tc->snd_una != tc->snd_una_max); + ASSERT (tc->snd_una != tc->snd_nxt); tcp_timer_set (tw, tc, TCP_TIMER_RETRANSMIT, clib_max (tc->rto * TCP_TO_TIMER_TICK, 1)); } -- cgit 1.2.3-korg