summaryrefslogtreecommitdiff
path: root/config/common_bsdapp
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2015-07-15 17:32:21 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-16 13:59:24 +0200
commitfafcc11985a2d79c88334b10a6284068670954da (patch)
treeabbea4df204d49d50dee078bdf29bd57611eab06 /config/common_bsdapp
parent2f9d47013e4dbb7381914e6e2e2470f69225cafc (diff)
downloaddpdk-fafcc11985a2d79c88334b10a6284068670954da.zip
dpdk-fafcc11985a2d79c88334b10a6284068670954da.tar.gz
dpdk-fafcc11985a2d79c88334b10a6284068670954da.tar.xz
mem: rework memzone to be allocated by malloc
In the current memory hierarchy, memsegs are groups of physically contiguous hugepages, memzones are slices of memsegs and malloc further slices memzones into smaller memory chunks. This patch modifies malloc so it partitions memsegs instead of memzones. Thus memzones would call malloc internally for memory allocation while maintaining its ABI. During initialization malloc sets all available memory as part of the heaps. CONFIG_RTE_MALLOC_MEMZONE_SIZE was used to specify the default memory block size to expand the heap. The option is not used/relevant anymore, so we remove it. Remove free_memseg field from internal mem config structure as it is not used anymore. Also remove code in ivshmem that was setting up free_memseg on init. It would be possible to free memzones and therefore any other structure based on memzones, ie. mempools Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Diffstat (limited to 'config/common_bsdapp')
-rw-r--r--config/common_bsdapp1
1 files changed, 0 insertions, 1 deletions
diff --git a/config/common_bsdapp b/config/common_bsdapp
index 5bb7f55..4e505bf 100644
--- a/config/common_bsdapp
+++ b/config/common_bsdapp
@@ -107,7 +107,6 @@ CONFIG_RTE_LOG_HISTORY=256
CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n
CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n
CONFIG_RTE_MALLOC_DEBUG=n
-CONFIG_RTE_MALLOC_MEMZONE_SIZE=11M
#
# FreeBSD contiguous memory driver settings