mem: add memalloc init stage
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 19 Apr 2018 09:40:48 +0000 (10:40 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 21:52:51 +0000 (23:52 +0200)
commit046aa5c4477bbd61718317e9c115c5d3ed42eabf
treea1f185512797bebf7fb4209c4033157f86bd4924
parent1be7644986261377a588f2ee7e1cdcbab4710896
mem: add memalloc init stage

Currently, memseg lists for secondary process are allocated on
sync (triggered by init), when they are accessed for the first
time. Move this initialization to a separate init stage for
memalloc.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/eal/eal_memalloc.c
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/common/eal_memalloc.h
lib/librte_eal/linuxapp/eal/eal_memalloc.c