eal: set affinity for control threads
[dpdk.git] / lib / librte_eal / common / include / rte_eal_memconfig.h
index 7de906b..b9eee70 100644 (file)
@@ -39,6 +39,7 @@
 #include <rte_memzone.h>
 #include <rte_malloc_heap.h>
 #include <rte_rwlock.h>
+#include <rte_pause.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -67,7 +68,7 @@ struct rte_mem_config {
        rte_rwlock_t qlock;   /**< used for tailq operation for thread safe. */
        rte_rwlock_t mplock;  /**< only used by mempool LIB for thread-safe. */
 
-       uint32_t memzone_idx; /**< Index of memzone */
+       uint32_t memzone_cnt; /**< Number of allocated memzones */
 
        /* memory segments and zones */
        struct rte_memseg memseg[RTE_MAX_MEMSEG];    /**< Physmem descriptors. */