summaryrefslogtreecommitdiff
path: root/config/rte_config.h
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/rte_config.h
parent5282bb1c3695eb8f00d3bda3636c4da3332570ba (diff)
downloaddpdk-72cf92b318558db98312e49b548aa93e237eded7.zip
dpdk-72cf92b318558db98312e49b548aa93e237eded7.tar.gz
dpdk-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/rte_config.h')
-rw-r--r--config/rte_config.h1
1 files changed, 1 insertions, 0 deletions
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