From: Victor Julien Date: Thu, 27 Oct 2022 11:00:25 +0000 (+0200) Subject: dpdk: set new running flag at thread startup X-Git-Tag: suricata-7.0.0-rc1~446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8097%2Fhead;p=thirdparty%2Fsuricata.git dpdk: set new running flag at thread startup --- diff --git a/src/source-dpdk.c b/src/source-dpdk.c index 644c277d2a..ce9cc8618f 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)) {