From: Lukas Sismis Date: Sat, 2 Mar 2024 14:57:43 +0000 (+0100) Subject: dpdk: output unknown NIC's NUMA node message only on multi-node systems X-Git-Tag: suricata-7.0.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9437c6cfcb7c238d233fb26f0269064e7c66004f;p=thirdparty%2Fsuricata.git dpdk: output unknown NIC's NUMA node message only on multi-node systems Ticket: #6715 (cherry picked from commit 566e89a0d6aa56073705f97d972fc59911d9122e) --- diff --git a/src/source-dpdk.c b/src/source-dpdk.c index 54503e2122..cf26af5038 100644 --- a/src/source-dpdk.c +++ b/src/source-dpdk.c @@ -564,7 +564,7 @@ static TmEcode ReceiveDPDKThreadInit(ThreadVars *tv, const void *initdata, void if (inconsistent_numa_cnt > 0 && ptv->port_socket_id != SOCKET_ID_ANY) { SCLogWarning("%s: NIC is on NUMA %d, %u threads on different NUMA node(s)", dpdk_config->iface, ptv->port_socket_id, inconsistent_numa_cnt); - } else if (ptv->port_socket_id == SOCKET_ID_ANY) { + } else if (ptv->port_socket_id == SOCKET_ID_ANY && rte_socket_count() > 1) { SCLogNotice( "%s: unable to determine NIC's NUMA node, degraded performance can be expected", dpdk_config->iface);