X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Feal_memcfg.h;h=ea013a9daf17b68e9f20b84d09ef890818a97f11;hb=e863fe3a13da89787fdf3b5c590101a3c0f10af6;hp=030f903adc0c333ffc4b1c1f77e2d8ead438ada1;hpb=ae3b4bc4fb9ca179eac5c4c9b51b4853b3afe7c7;p=dpdk.git diff --git a/lib/librte_eal/common/eal_memcfg.h b/lib/librte_eal/common/eal_memcfg.h index 030f903adc..ea013a9daf 100644 --- a/lib/librte_eal/common/eal_memcfg.h +++ b/lib/librte_eal/common/eal_memcfg.h @@ -5,15 +5,15 @@ #ifndef EAL_MEMCFG_H #define EAL_MEMCFG_H -#include -#include -#include #include #include #include +#include #include #include +#include "malloc_heap.h" + /** * Memory configuration shared across multiple processes. */ @@ -36,10 +36,13 @@ struct rte_mem_config { rte_rwlock_t mlock; /**< used by memzones for thread safety. */ rte_rwlock_t qlock; /**< used by tailqs for thread safety. */ rte_rwlock_t mplock; /**< used by mempool library for thread safety. */ + rte_spinlock_t tlock; /**< used by timer library for thread safety. */ rte_rwlock_t memory_hotplug_lock; /**< Indicates whether memory hotplug request is in progress. */ + uint8_t mp_status; /**< Multiprocess status. */ + /* memory segments and zones */ struct rte_fbarray memzones; /**< Memzone descriptors. */ @@ -68,6 +71,9 @@ struct rte_mem_config { uint32_t single_file_segments; /**< stored single file segments parameter. */ + uint64_t tsc_hz; + /**< TSC rate */ + uint8_t dma_maskbits; /**< Keeps the more restricted dma mask. */ };