From: Ralph Eastwood Date: Thu, 3 Aug 2023 12:40:13 +0000 (+0000) Subject: napatech: fix thread flags with THV_RUNNING X-Git-Tag: suricata-7.0.1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23e53865131e9c6a947e6f540359d95b4228ac81;p=thirdparty%2Fsuricata.git napatech: fix thread flags with THV_RUNNING This update the Napatech vendor module with changes introduced in 13beba141c98debc4d7e29081c91a799362f19fb that introduces THV_RUNNING. --- diff --git a/src/util-napatech.c b/src/util-napatech.c index b23bd1316e..74ff82fda7 100644 --- a/src/util-napatech.c +++ b/src/util-napatech.c @@ -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; }