mempool: use memseg walk instead of iteration
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 11 Apr 2018 12:30:05 +0000 (13:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 17:49:16 +0000 (19:49 +0200)
commit8f7335c1be7ae44fb751cc39fd22b7833468be1b
tree3bae0db9a81953349dfe78d4b0969cc89cf292fc
parent221b67bca0fa4e144fd53640725165e01075ada1
mempool: use memseg walk instead of iteration

Reduce dependency on internal details of EAL memory subsystem, and
simplify code.

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_mempool/Makefile
lib/librte_mempool/meson.build
lib/librte_mempool/rte_mempool.c