summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAnatoly Burakov <anatoly.burakov@intel.com>2018-10-02 14:34:41 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-10-11 10:37:39 +0200
commit72cf92b318558db98312e49b548aa93e237eded7 (patch)
tree29c187596602900f8e33cc21c644006a4d0a161e /config
parent5282bb1c3695eb8f00d3bda3636c4da3332570ba (diff)
downloaddpdk-next-eventdev-72cf92b318558db98312e49b548aa93e237eded7.zip
dpdk-next-eventdev-72cf92b318558db98312e49b548aa93e237eded7.tar.gz
dpdk-next-eventdev-72cf92b318558db98312e49b548aa93e237eded7.tar.xz
malloc: index heaps using heap ID rather than NUMA node
Switch over all parts of EAL to use heap ID instead of NUMA node ID to identify heaps. Heap ID for DPDK-internal heaps is NUMA node's index within the detected NUMA node list. Heap ID for external heaps will be order of their creation. This breaks the ABI, so document the changes. Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Diffstat (limited to 'config')
-rw-r--r--config/common_base1
-rw-r--r--config/rte_config.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/common_base b/config/common_base
index acc5211..83350e0 100644
--- a/config/common_base
+++ b/config/common_base
@@ -61,6 +61,7 @@ CONFIG_RTE_CACHE_LINE_SIZE=64
CONFIG_RTE_LIBRTE_EAL=y
CONFIG_RTE_MAX_LCORE=128
CONFIG_RTE_MAX_NUMA_NODES=8
+CONFIG_RTE_MAX_HEAPS=32
CONFIG_RTE_MAX_MEMSEG_LISTS=64
# each memseg list will be limited to either RTE_MAX_MEMSEG_PER_LIST pages
# or RTE_MAX_MEM_MB_PER_LIST megabytes worth of memory, whichever is smaller
diff --git a/config/rte_config.h b/config/rte_config.h
index 20c58df..816e6f8 100644
--- a/config/rte_config.h
+++ b/config/rte_config.h
@@ -24,6 +24,7 @@
#define RTE_BUILD_SHARED_LIB
/* EAL defines */
+#define RTE_MAX_HEAPS 32
#define RTE_MAX_MEMSEG_LISTS 128
#define RTE_MAX_MEMSEG_PER_LIST 8192
#define RTE_MAX_MEM_MB_PER_LIST 32768