mem: support --huge-unlink mode
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 13 Jul 2018 12:48:02 +0000 (13:48 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Jul 2018 13:34:17 +0000 (15:34 +0200)
commitd435aad37da7b1e3cf0dbae479cce22d3afb16be
treed69262b0dbdca455201f2396b44fb6e7c77e96f9
parent5cb42707bcd4db621ae4a729331946fd6c514425
mem: support --huge-unlink mode

Unlink hugepages after creating them, to honor the hugepage-unlink mode.
We cannot resize non-existing files, so make single file segments
explicitly unsupported.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/linuxapp/eal/eal_memalloc.c