tcp: fix persist assert 56/24256/3
authorFlorin Coras <fcoras@cisco.com>
Wed, 8 Jan 2020 23:30:15 +0000 (23:30 +0000)
committerJohn Lo <loj@cisco.com>
Thu, 9 Jan 2020 16:29:10 +0000 (16:29 +0000)
Type: fix

Persist and retransmit can pop at the same time.

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ia9530645cc84c83a881a75d7b4627197dc50ed29

src/vnet/tcp/tcp_output.c

index 05db727..631b33a 100644 (file)
@@ -1688,10 +1688,7 @@ tcp_timer_persist_handler (u32 index, u32 thread_index)
     }
 
   if (available_bytes <= offset)
-    {
-      ASSERT (tcp_timer_is_active (tc, TCP_TIMER_RETRANSMIT));
-      return;
-    }
+    return;
 
   /* Increment RTO backoff */
   tc->rto_boff += 1;