From 16c88f2db74d43fa9e3eb82a70fe551dc4870a5c Mon Sep 17 00:00:00 2001 From: Lukas Sismis Date: Thu, 14 Mar 2024 12:49:14 +0100 Subject: [PATCH] dpdk: fix typo in the struct member name --- src/runmode-dpdk.c | 2 +- src/source-dpdk.c | 4 ++-- src/source-dpdk.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/runmode-dpdk.c b/src/runmode-dpdk.c index 33fc53a7dd..a06bb08a03 100644 --- a/src/runmode-dpdk.c +++ b/src/runmode-dpdk.c @@ -1591,7 +1591,7 @@ static void *ParseDpdkConfigAndConfigureDevice(const char *iface) (void)SC_ATOMIC_ADD(iconf->ref, iconf->threads); // This counter is increased by worker threads that individually pick queue IDs. SC_ATOMIC_RESET(iconf->queue_id); - SC_ATOMIC_RESET(iconf->inconsitent_numa_cnt); + SC_ATOMIC_RESET(iconf->inconsistent_numa_cnt); iconf->workers_sync = SCCalloc(1, sizeof(*iconf->workers_sync)); if (iconf->workers_sync == NULL) { FatalError("Failed to allocate memory for workers_sync"); diff --git a/src/source-dpdk.c b/src/source-dpdk.c index 69e13bc164..84a860f3fd 100644 --- a/src/source-dpdk.c +++ b/src/source-dpdk.c @@ -662,7 +662,7 @@ static TmEcode ReceiveDPDKThreadInit(ThreadVars *tv, const void *initdata, void thread_numa = GetNumaNode(); if (thread_numa >= 0 && ptv->port_socket_id != SOCKET_ID_ANY && thread_numa != ptv->port_socket_id) { - SC_ATOMIC_ADD(dpdk_config->inconsitent_numa_cnt, 1); + SC_ATOMIC_ADD(dpdk_config->inconsistent_numa_cnt, 1); SCLogPerf("%s: NIC is on NUMA %d, thread on NUMA %d", dpdk_config->iface, ptv->port_socket_id, thread_numa); } @@ -691,7 +691,7 @@ static TmEcode ReceiveDPDKThreadInit(ThreadVars *tv, const void *initdata, void // some PMDs requires additional actions only after the device has started DevicePostStartPMDSpecificActions(ptv, dev_info.driver_name); - uint16_t inconsistent_numa_cnt = SC_ATOMIC_GET(dpdk_config->inconsitent_numa_cnt); + uint16_t inconsistent_numa_cnt = SC_ATOMIC_GET(dpdk_config->inconsistent_numa_cnt); 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); diff --git a/src/source-dpdk.h b/src/source-dpdk.h index dce791c14c..36617134d6 100644 --- a/src/source-dpdk.h +++ b/src/source-dpdk.h @@ -76,7 +76,7 @@ typedef struct DPDKIfaceConfig_ { SC_ATOMIC_DECLARE(unsigned int, ref); /* threads bind queue id one by one */ SC_ATOMIC_DECLARE(uint16_t, queue_id); - SC_ATOMIC_DECLARE(uint16_t, inconsitent_numa_cnt); + SC_ATOMIC_DECLARE(uint16_t, inconsistent_numa_cnt); DPDKWorkerSync *workers_sync; void (*DerefFunc)(void *); -- 2.47.2