mem: introduce memzone freeing
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Wed, 15 Jul 2015 16:32:25 +0000 (17:32 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jul 2015 12:01:04 +0000 (14:01 +0200)
commitff909fe21f0a458384e7f456689b027733a6915b
tree49ba78df75cea9e90c44fe84ddd9b941d3f7868e
parent89f3a8157497d2d8dcfdcf3bc02768aeb7797118
mem: introduce memzone freeing

Implement rte_memzone_free which, as its name implies, would free a
memzone.

Currently memzone are tracked in an array and cannot be free.
To be able to reuse the same array to track memzones, we have to
change how we keep track of reserved memzones.

With this patch, any memzone with addr NULL is not used, so we also need
to change how we look for the next memzone entry free.

Add new unit test for rte_memzone_free API.

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
app/test/test_memzone.c
lib/librte_eal/bsdapp/eal/rte_eal_version.map
lib/librte_eal/common/eal_common_memzone.c
lib/librte_eal/common/include/rte_eal_memconfig.h
lib/librte_eal/common/include/rte_memzone.h
lib/librte_eal/linuxapp/eal/eal_ivshmem.c
lib/librte_eal/linuxapp/eal/rte_eal_version.map