summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_timer.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-07-16 10:05:02 -0700
committerDave Barach <openvpp@barachs.net>2020-07-23 16:39:48 +0000
commit1caf7f11c0197a912ccc28e67e4e9af75323af80 (patch)
tree2a243f6de4817ba23bdf58d29590d7fdc389e90c /src/vnet/tcp/tcp_timer.h
parentbf9a0c8097d47f052efea13a09d3a6c6fc68fb35 (diff)
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 <fcoras@cisco.com> Change-Id: I4edbb72d5b2aa5e14f87659f49e675af1e834aca
Diffstat (limited to 'src/vnet/tcp/tcp_timer.h')
-rw-r--r--src/vnet/tcp/tcp_timer.h1
1 files changed, 1 insertions, 0 deletions
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;