From 2f9ca8bb34b2d15949bfc117e07ecbf7ab19d542 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 27 Oct 2022 13:00:25 +0200 Subject: [PATCH] dpdk: set new running flag at thread startup --- src/source-dpdk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/source-dpdk.c b/src/source-dpdk.c index 644c277d2a63..ce9cc8618f3e 100644 --- a/src/source-dpdk.c +++ b/src/source-dpdk.c @@ -349,6 +349,10 @@ static TmEcode ReceiveDPDKLoop(ThreadVars *tv, void *data, void *slot) ptv->slot = s->slot_next; + // Indicate that the thread is actually running its application level code (i.e., it can poll + // packets) + TmThreadsSetFlag(tv, THV_RUNNING); + PacketPoolWait(); while (1) { if (unlikely(suricata_ctl_flags != 0)) {