From: Nipun Gupta Date: Mon, 5 Feb 2018 05:21:54 +0000 (+0530) Subject: bus/fslmc: fix mempool ops registration X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=285c5616e69f8729757115b5312a9290dcce23b4;p=dpdk.git bus/fslmc: fix mempool ops registration Fixes: 8824b74d8f5f ("bus/fslmc: register platform HW mempool on runtime") Signed-off-by: Nipun Gupta Acked-by: Shreyansh Jain --- diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c index 1539739859..f1f14e2947 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c @@ -77,8 +77,8 @@ dpaa2_create_dpbp_device(int vdev_fd __rte_unused, RTE_LOG(DEBUG, PMD, "DPAA2: Added [dpbp.%d]\n", dpbp_id); if (!register_once) { - if (rte_mbuf_set_platform_mempool_ops(DPAA2_MEMPOOL_OPS_NAME)) - register_once = 1; + rte_mbuf_set_platform_mempool_ops(DPAA2_MEMPOOL_OPS_NAME); + register_once = 1; } return 0;