memzone: replace memzone array with fbarray
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 11 Apr 2018 12:30:25 +0000 (13:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 17:56:30 +0000 (19:56 +0200)
commit49df3db848832118156570fe07643b16f652d4de
tree216de8d2fcc90cb939395598705e03bf085c8f7d
parent66cc45e293ed67d4e83fb8a1174089c58610a8e1
memzone: replace memzone array with fbarray

It's there, so we might as well use it. Some operations will be
sped up by that.

Since we have to allocate an fbarray for memzones, we have to do
it before we initialize memory subsystem, because that, in
secondary processes, will (later) allocate more fbarrays than the
primary process, which will result in inability to attach to
memzone fbarray if we do it after the fact.

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>
drivers/net/ena/Makefile
drivers/net/ena/ena_ethdev.c
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/common/eal_common_memzone.c
lib/librte_eal/common/include/rte_eal_memconfig.h
lib/librte_eal/common/malloc_heap.c
lib/librte_eal/linuxapp/eal/eal.c
test/test/test_memzone.c