path: root/lib/librte_mbuf
diff options
authorNipun Gupta <>2018-02-02 13:33:01 +0530
committerThomas Monjalon <>2018-02-06 01:02:12 +0100
commit028e4b1dbc4acb54db9188a81d7644bccc542c74 (patch)
treebfdb9ed833236753250d3cefaf02698d3e68a9a6 /lib/librte_mbuf
parentce42ae42bc0f577d9d91c6120216b3b007170d5a (diff)
mbuf: fix logic of user mempool ops API
The existing rte_eal_mbuf_default mempool ops can return the compile time default ops name if the user has not provided command line inputs for mempool ops name. It will break the logic of best mempool ops as it will never return platform hw mempool ops. This patch introduces a new API to just return the user mempool ops only. Fixes: 8b0f7f434132 ("mbuf: maintain user and compile time mempool ops name") Signed-off-by: Nipun Gupta <> Acked-by: Olivier Matz <>
Diffstat (limited to 'lib/librte_mbuf')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_mbuf/rte_mbuf_pool_ops.c b/lib/librte_mbuf/rte_mbuf_pool_ops.c
index 385fc43..48cc342 100644
--- a/lib/librte_mbuf/rte_mbuf_pool_ops.c
+++ b/lib/librte_mbuf/rte_mbuf_pool_ops.c
@@ -74,7 +74,7 @@ rte_mbuf_user_mempool_ops(void)
mz = rte_memzone_lookup("mbuf_user_pool_ops");
if (mz == NULL)
- return rte_eal_mbuf_default_mempool_ops();
+ return rte_eal_mbuf_user_pool_ops();
return mz->addr;