]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dpdk: set new running flag at thread startup 8097/head
authorVictor Julien <vjulien@oisf.net>
Thu, 27 Oct 2022 11:00:25 +0000 (13:00 +0200)
committerVictor Julien <vjulien@oisf.net>
Thu, 27 Oct 2022 11:00:25 +0000 (13:00 +0200)
src/source-dpdk.c

index 644c277d2a6317d27a57cf15f3078a9ae49a3c99..ce9cc8618f3e60813987d0b740e3ce546f565104 100644 (file)
@@ -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)) {