]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dpdk: fix typo in the struct member name
authorLukas Sismis <lsismis@oisf.net>
Thu, 14 Mar 2024 11:49:14 +0000 (12:49 +0100)
committerVictor Julien <victor@inliniac.net>
Sat, 16 Mar 2024 08:29:37 +0000 (09:29 +0100)
src/runmode-dpdk.c
src/source-dpdk.c
src/source-dpdk.h

index 33fc53a7ddec30084f8c2e416634a3cd1e5d6c1e..a06bb08a03ccec9fb414f54bb9189f5dd0413e56 100644 (file)
@@ -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");
index 69e13bc1640fbabff3330a6078eea8c5effa34c8..84a860f3fdc79a8ca565fa11184d9ac01cf48eaa 100644 (file)
@@ -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);
index dce791c14cecb1fec7636ea46f57b8219ff803fe..36617134d6fd50b53797e45c15b8bd1cda6cc09e 100644 (file)
@@ -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 *);