malloc: separate destroying memseg list and heap data
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 20 Dec 2018 15:32:39 +0000 (15:32 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Dec 2018 17:10:08 +0000 (18:10 +0100)
commit39ff94e71cd5469a7796d4a52340afaa54bee16e
tree679cfc83574e53c7893af83abf6e57a888666b78
parent0f526d674f8e89f6237f1521bb3aec420c9219b6
malloc: separate destroying memseg list and heap data

Currently, destroying external heap chunk and its memseg list is
part of one process. When we will gain the ability to unregister
external memory from DPDK that doesn't have any heap structures
associated with it, we need to be able to find and destroy
memseg lists as well as heap data separately.

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