]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow/timeout: no need to wait for packetpool
authorVictor Julien <vjulien@oisf.net>
Tue, 12 Sep 2023 10:13:52 +0000 (12:13 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 1 Nov 2023 05:50:27 +0000 (06:50 +0100)
The timeout logic no longer passes packets around, so don't depend
on the packet pool.

Bug: #6292.

src/flow-timeout.c

index 91dd872375e447522ae009fc0d242c7c27498e0b..6a9b707c21866d121424675814f518ac124fdb5c 100644 (file)
@@ -370,8 +370,6 @@ static inline void FlowForceReassemblyForHash(void)
 {
     for (uint32_t idx = 0; idx < flow_config.hash_size; idx++) {
         FlowBucket *fb = &flow_hash[idx];
-
-        PacketPoolWaitForN(9);
         FBLOCK_LOCK(fb);
 
         Flow *f = fb->head;
@@ -380,7 +378,6 @@ static inline void FlowForceReassemblyForHash(void)
         /* we need to loop through all the flows in the queue */
         while (f != NULL) {
             Flow *next_f = f->next;
-            PacketPoolWaitForN(3);
 
             FLOWLOCK_WRLOCK(f);