eal: use memseg walk instead of iteration
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 11 Apr 2018 12:30:04 +0000 (13:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 17:48:15 +0000 (19:48 +0200)
commit221b67bca0fa4e144fd53640725165e01075ada1
treed0749a05d1390acf1f8d7c5e3c1180e682854560
parent8594a2026b1b9668f6752759c7da12d10ee457b9
eal: 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_eal/bsdapp/eal/eal.c
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/common/malloc_heap.c
lib/librte_eal/linuxapp/eal/eal.c