Skip to content

Commit

Permalink
napatech: emit HBA deprecation only once
Browse files Browse the repository at this point in the history
Issue: 6313
This commit removes duplicate HBA deprecation messages from being
emitted.
  • Loading branch information
perkinjo committed Mar 13, 2024
1 parent 8e8efd2 commit 05640d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/runmode-napatech.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,12 @@ static void *NapatechConfigParser(const char *device)
if (ConfGetInt("napatech.hba", &conf->hba) == 0) {
conf->hba = -1;
} else {
SCLogWarning("Napatech Host Buffer Allocation (hba) will be deprecated in Suricata v7.0.");
static bool warn_once = false;
if (!warn_once) {
SCLogWarning(
"Napatech Host Buffer Allowance (hba) will be deprecated in Suricata v8.0.");
warn_once = true;
}
}
return (void *) conf;
}
Expand Down

0 comments on commit 05640d8

Please sign in to comment.