]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
napatech: remove superfluous log messages
authorRalph Eastwood <rea@napatech.com>
Wed, 16 Aug 2023 08:30:37 +0000 (10:30 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Sep 2023 12:21:34 +0000 (14:21 +0200)
src/source-napatech.c
src/util-napatech.c

index f646c42030d165f75a58421bcbf622c13ddc808b..6654fbc600476d995dcd70c0f20dae168a556206 100644 (file)
@@ -813,13 +813,14 @@ TmEcode NapatechPacketLoop(ThreadVars *tv, void *data, void *slot)
 
 #ifdef NAPATECH_ENABLE_BYPASS
     NtFlowStream_t flow_stream[MAX_ADAPTERS] = { 0 };
-
-    /* Get a FlowStream handle for each adapter so we can efficiently find the
-     * correct handle corresponding to the port on which a packet is received.
-     */
-    int adapter = 0;
-    for (adapter = 0; adapter < NapatechGetNumAdapters(); ++adapter) {
-        flow_stream[adapter] = InitFlowStream(adapter, ntv->stream_id);
+    if (NapatechUseHWBypass()) {
+        /* Get a FlowStream handle for each adapter so we can efficiently find the
+         * correct handle corresponding to the port on which a packet is received.
+         */
+        int adapter = 0;
+        for (adapter = 0; adapter < NapatechGetNumAdapters(); ++adapter) {
+            flow_stream[adapter] = InitFlowStream(adapter, ntv->stream_id);
+        }
     }
 #endif
 
index e8c842fabc4c0fa94b65ad86ac28d5db674b9f2c..affcd49cbb879f46a4f6f8eaf4730a72a8d1eb9f 100644 (file)
@@ -1409,8 +1409,6 @@ uint32_t NapatechSetupTraffic(uint32_t first_stream, uint32_t last_stream)
 #ifdef NAPATECH_ENABLE_BYPASS
     if (NapatechUseHWBypass()) {
         SCLogInfo("Napatech Hardware Bypass enabled.");
-    } else {
-        SCLogInfo("Napatech Hardware Bypass available but disabled.");
     }
 #else
     if (NapatechUseHWBypass()) {