eal: implement device iteration initialization
[dpdk.git] / lib / librte_eal / common / include / rte_eal_memconfig.h
index 88cde8c..aff0688 100644 (file)
@@ -32,6 +32,7 @@ struct rte_memseg_list {
        };
        int socket_id; /**< Socket ID for all memsegs in this list. */
        uint64_t page_sz; /**< Page size for all memsegs in this list. */
+       volatile uint32_t version; /**< version number for multiprocess sync. */
        struct rte_fbarray memseg_arr;
 };
 
@@ -58,6 +59,9 @@ 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. */
 
+       rte_rwlock_t memory_hotplug_lock;
+       /**< indicates whether memory hotplug request is in progress. */
+
        /* memory segments and zones */
        struct rte_fbarray memzones; /**< Memzone descriptors. */