mem: detach memsegs on cleanup
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 14 Sep 2020 13:04:05 +0000 (14:04 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 3 Mar 2021 09:05:23 +0000 (10:05 +0100)
commitdfbc61a2f9a6d1a2c03c44a259f300da166f8e21
tree32d5daccf4e8696607f6c2a5147fdb9bb13edccd
parent3cd7290c1603db0606264c2f41f06204fde03402
mem: detach memsegs on cleanup

Currently, we don't detach the shared memory on EAL cleanup, which
leaves the page table descriptors still holding on to the file
descriptors as well as memory space occupied by them. Fix it by adding
another detach stage that closes the internal memory allocator resource
references, detaches shared fbarrays and unmaps the shared mem config.

Bugzilla ID: 380
Bugzilla ID: 381

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/common/eal_memalloc.h
lib/librte_eal/common/eal_private.h
lib/librte_eal/freebsd/eal.c
lib/librte_eal/freebsd/eal_memalloc.c
lib/librte_eal/linux/eal.c
lib/librte_eal/linux/eal_memalloc.c
lib/librte_eal/windows/eal.c
lib/librte_eal/windows/eal_memalloc.c