]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
napatech: Add Deprecation Warning Message for HBA
authorPhil Young <py@napatech.com>
Fri, 13 Nov 2020 16:32:32 +0000 (11:32 -0500)
committerVictor Julien <victor@inliniac.net>
Sun, 15 Nov 2020 07:03:26 +0000 (08:03 +0100)
Added a message that HBA will be deprecated in the future and removed
hba from default conf file.

src/runmode-napatech.c
suricata.yaml.in

index d7a206e064becd4e7dad8e395dc0632f06992186..584e2d8e468b4090e880eccc1b6a04485a92fa4f 100644 (file)
@@ -206,6 +206,9 @@ static void *NapatechConfigParser(const char *device)
      */
     if (ConfGetInt("napatech.hba", &conf->hba) == 0) {
         conf->hba = -1;
+    } else {
+        SCLogWarning(SC_WARN_COMPATIBILITY,
+                "Napatech Host Buffer Allocation (hba) will be deprecated in Suricata v7.0.");
     }
     return (void *) conf;
 }
index e521ca5b7960f39f9e3fdbf152e756152878a9ea..3f1bae8f11fd64b16b9123bbc31aa46bf11349ea 100644 (file)
@@ -1762,12 +1762,6 @@ ipfw:
 
 
 napatech:
-    # The Host Buffer Allowance for all streams
-    # (-1 = OFF, 1 - 100 = percentage of the host buffer that can be held back)
-    # This may be enabled when sharing streams with another application.
-    # Otherwise, it should be turned off.
-    #hba: -1
-
     # When use_all_streams is set to "yes" the initialization code will query
     # the Napatech service for all configured streams and listen on all of them.
     # When set to "no" the streams config array will be used.