dpdk: fix typo in the struct member name

pull/10652/head
Lukas Sismis 2 years ago committed by Victor Julien
parent 5592ec079d
commit 16c88f2db7

@ -1591,7 +1591,7 @@ static void *ParseDpdkConfigAndConfigureDevice(const char *iface)
(void)SC_ATOMIC_ADD(iconf->ref, iconf->threads); (void)SC_ATOMIC_ADD(iconf->ref, iconf->threads);
// This counter is increased by worker threads that individually pick queue IDs. // This counter is increased by worker threads that individually pick queue IDs.
SC_ATOMIC_RESET(iconf->queue_id); 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)); iconf->workers_sync = SCCalloc(1, sizeof(*iconf->workers_sync));
if (iconf->workers_sync == NULL) { if (iconf->workers_sync == NULL) {
FatalError("Failed to allocate memory for workers_sync"); FatalError("Failed to allocate memory for workers_sync");

@ -662,7 +662,7 @@ static TmEcode ReceiveDPDKThreadInit(ThreadVars *tv, const void *initdata, void
thread_numa = GetNumaNode(); thread_numa = GetNumaNode();
if (thread_numa >= 0 && ptv->port_socket_id != SOCKET_ID_ANY && if (thread_numa >= 0 && ptv->port_socket_id != SOCKET_ID_ANY &&
thread_numa != ptv->port_socket_id) { 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, SCLogPerf("%s: NIC is on NUMA %d, thread on NUMA %d", dpdk_config->iface,
ptv->port_socket_id, thread_numa); 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 // some PMDs requires additional actions only after the device has started
DevicePostStartPMDSpecificActions(ptv, dev_info.driver_name); 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) { 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)", SCLogWarning("%s: NIC is on NUMA %d, %u threads on different NUMA node(s)",
dpdk_config->iface, ptv->port_socket_id, inconsistent_numa_cnt); dpdk_config->iface, ptv->port_socket_id, inconsistent_numa_cnt);

@ -76,7 +76,7 @@ typedef struct DPDKIfaceConfig_ {
SC_ATOMIC_DECLARE(unsigned int, ref); SC_ATOMIC_DECLARE(unsigned int, ref);
/* threads bind queue id one by one */ /* threads bind queue id one by one */
SC_ATOMIC_DECLARE(uint16_t, queue_id); 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; DPDKWorkerSync *workers_sync;
void (*DerefFunc)(void *); void (*DerefFunc)(void *);

Loading…
Cancel
Save