]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dpdk: output unknown NIC's NUMA node message only on multi-node systems
authorLukas Sismis <lsismis@oisf.net>
Sat, 2 Mar 2024 14:57:43 +0000 (15:57 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 13 Mar 2024 05:22:53 +0000 (06:22 +0100)
Ticket: #6715
(cherry picked from commit 566e89a0d6aa56073705f97d972fc59911d9122e)

src/source-dpdk.c

index 54503e212271194c71fe6f3ec1e6bfb56ab526b7..cf26af503818c0994bbdf27ffee99a1cf1ad806c 100644 (file)
@@ -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);