mem: extract common memseg list initialization
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Mon, 15 Jun 2020 00:43:46 +0000 (03:43 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 15 Jun 2020 17:25:16 +0000 (19:25 +0200)
commit83713ef2761085501fbc4e3703817fafb3184b3b
tree1ba3b88be30b426fe37b766c5b6d7b7e3644495c
parentc4b89ecb64eae773337f3b1367dd8b1f09737f2e
mem: extract common memseg list initialization

All supported OS create memory segment lists (MSL) and reserve VA space
for them in a nearly identical way. Move common code into EAL private
functions to reduce duplication.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/common/eal_private.h
lib/librte_eal/freebsd/eal_memory.c
lib/librte_eal/linux/eal_memory.c