mem: support unmapping pages at runtime
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 11 Apr 2018 12:30:27 +0000 (13:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 17:57:20 +0000 (19:57 +0200)
commita5ff05d60fc59c90b2cfd65613eee39af9c0e33e
tree3280fd94ac626ed5c30d43708ffee2c26250cadf
parent582bed1e1d1ddfd51bc7d61b95b0b8b55e47c6f9
mem: support unmapping pages at runtime

This isn't used anywhere yet, but the support is now there. Also,
adding cleanup to allocation procedures, so that if we fail to
allocate everything we asked for, we can free all of it back.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
lib/librte_eal/bsdapp/eal/eal_memalloc.c
lib/librte_eal/common/eal_memalloc.h
lib/librte_eal/linuxapp/eal/eal_memalloc.c