]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
napatech: fix thread flags with THV_RUNNING
authorRalph Eastwood <rea@napatech.com>
Thu, 3 Aug 2023 12:40:13 +0000 (12:40 +0000)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Sep 2023 12:21:34 +0000 (14:21 +0200)
This update the Napatech vendor module with changes introduced in
13beba141c98debc4d7e29081c91a799362f19fb that introduces THV_RUNNING.

src/util-napatech.c

index b23bd1316e7b696472eeb6600c19052cd8fe5729..74ff82fda71401fd43eec714b0aac06d2d44b009 100644 (file)
@@ -643,7 +643,7 @@ static void *NapatechStatsLoop(void *arg)
                      "active streams.");
     }
 
-    TmThreadsSetFlag(tv, THV_INIT_DONE);
+    TmThreadsSetFlag(tv, THV_INIT_DONE | THV_RUNNING);
     while (1) {
         if (TmThreadsCheckFlag(tv, THV_KILL)) {
             SCLogDebug("NapatechStatsLoop THV_KILL detected");
@@ -1027,7 +1027,7 @@ static void *NapatechBufMonitorLoop(void *arg)
         exit(EXIT_FAILURE);
     }
 
-    TmThreadsSetFlag(tv, THV_INIT_DONE);
+    TmThreadsSetFlag(tv, THV_INIT_DONE | THV_RUNNING);
     while (1) {
         if (TmThreadsCheckFlag(tv, THV_KILL)) {
             SCLogDebug("NapatechBufMonitorLoop THV_KILL detected");
@@ -1217,7 +1217,6 @@ void NapatechStartStats(void)
         FatalError("Failed to spawn thread for NapatechBufMonitor - Killing engine.");
     }
 
-
     return;
 }