mempool: ensure mempool is initialized before populating
authorArtem V. Andreev <artem.andreev@oktetlabs.ru>
Mon, 16 Apr 2018 13:24:32 +0000 (14:24 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Apr 2018 23:41:01 +0000 (01:41 +0200)
commit66e7ba0bad4cab4376c6de8cbc7273a60ea60611
tree65469051ac2ef787baf44594a915ebb0ef08034f
parent4143b12200973e5f52569b29598921c141b9d85c
mempool: ensure mempool is initialized before populating

Callback to calculate required memory area size may require mempool
driver data to be already allocated and initialized.

Signed-off-by: Artem V. Andreev <artem.andreev@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.c