eal: fix default mempool ops
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Tue, 30 Jan 2018 15:57:47 +0000 (21:27 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 00:00:16 +0000 (01:00 +0100)
commitfe06cb6c54fe5ada299ebba40a382bee37c919f2
tree328552d544e174ab081453db137f07ef71411892
parentb0ee28ca12bd14a3fccdc4a84e701d19f87df6c2
eal: fix default mempool ops

If '--mbuf-pool-ops' is not passed to EAL as command line argument then
rte_eal_mbuf_default_mempool_ops will return NULL.

Instead check if internal_config.user_mbuf_pool_ops_name is NULL and
return compile time RTE_MBUF_DEFAULT_MEMPOOL_OPS.

Fixes: 8b0f7f43413 ("mbuf: maintain user and compile time mempool ops name")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal.c