(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");
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);
}
// 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);
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 *);