From 1caf7f11c0197a912ccc28e67e4e9af75323af80 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 16 Jul 2020 10:05:02 -0700 Subject: tcp: track pending timers Also removes delack timer and reuses the u32 for the pending timers list. Type: fix Ticket: VPP-1923 Signed-off-by: Florin Coras Change-Id: I4edbb72d5b2aa5e14f87659f49e675af1e834aca --- src/vnet/tcp/tcp_timer.h | 1 + 1 file changed, 1 insertion(+) (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 d34fdcb146d..914b5aaeeb7 100644 --- a/src/vnet/tcp/tcp_timer.h +++ b/src/vnet/tcp/tcp_timer.h @@ -31,6 +31,7 @@ always_inline void tcp_timer_reset (tcp_timer_wheel_t * tw, tcp_connection_t * tc, u8 timer_id) { ASSERT (tc->c_thread_index == vlib_get_thread_index ()); + tc->pending_timers &= ~(1 << timer_id); if (tc->timers[timer_id] == TCP_TIMER_HANDLE_INVALID) return; -- cgit 1.2.3-korg