When thread affinity is set, the NUMA configuration specified in
the napatech.ini configuration could be incorrect and then fail.
This fails before the recommended configuration is printed, which
is pretty unhelpful.
SC_ATOMIC_ADD(stream_count, 1);
if (SC_ATOMIC_GET(stream_count) == NapatechGetNumConfiguredStreams()) {
+ /* Print the recommended NUMA configuration early because it
+ * can fail with "No available hostbuffers" in NapatechSetupTraffic */
+ RecommendNUMAConfig();
#ifdef NAPATECH_ENABLE_BYPASS
if (ConfGetBool("napatech.inline", &is_inline) == 0) {
} else if (status == 0x20000008) {
FatalError("Check napatech.ports in the suricata config file.");
}
- RecommendNUMAConfig();
SCLogNotice("Napatech packet input engine started.");
}
} // is_autoconfig