malloc: separate creating memseg list and malloc heap
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 20 Dec 2018 15:32:38 +0000 (15:32 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Dec 2018 17:09:55 +0000 (18:09 +0100)
commit0f526d674f8e89f6237f1521bb3aec420c9219b6
tree6601701ee2a90b95bfb67ad2b8c3d1f60a2dafcc
parent646e5260ee5371709042b0e2712822ba3ea63fe3
malloc: separate creating memseg list and malloc heap

Currently, creating external malloc heap involves also creating
a memseg list backing that malloc heap. We need to have them as
separate functions, to allow creating memseg lists without
creating a malloc heap.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
lib/librte_eal/common/malloc_heap.c
lib/librte_eal/common/malloc_heap.h
lib/librte_eal/common/rte_malloc.c