mem: provide thread-unsafe memseg list walk variant
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 12 Jun 2018 09:46:16 +0000 (10:46 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Jul 2018 09:21:25 +0000 (11:21 +0200)
commite26415428fe3f99c41f99e9c3b138a0eac3fb3d8
treec7a05d3f736b101f0ddb85f0e0927936c30ff217
parent7c790af08fb8a6b1757c92118f780c9a336b951b
mem: provide thread-unsafe memseg list walk variant

Sometimes, user code needs to walk memseg list while being inside
a memory-related callback. Rather than making everyone copy around
the same iteration code and depending on DPDK internals, provide an
official way to do memseg_list_walk() inside callbacks.

Also, remove existing reimplementation from memalloc code and use
the new API instead.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/common/include/rte_memory.h
lib/librte_eal/linuxapp/eal/eal_memalloc.c
lib/librte_eal/rte_eal_version.map