From: Hemant Agrawal Date: Mon, 5 Feb 2018 07:43:11 +0000 (+0530) Subject: test/mempool: get best pool via the new API X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bf0513fafda7d291750ced947230e1abd36781c0;p=dpdk.git test/mempool: get best pool via the new API This patch replaces the uses of default mempool ops API with newly supported best_mempool_ops API. Signed-off-by: Hemant Agrawal --- diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c index f39df5aa6c..63f921e263 100644 --- a/test/test/test_mempool.c +++ b/test/test/test_mempool.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "test.h" @@ -485,7 +486,7 @@ test_mempool(void) struct rte_mempool *mp_nocache = NULL; struct rte_mempool *mp_stack = NULL; struct rte_mempool *default_pool = NULL; - const char *default_pool_ops = rte_eal_mbuf_default_mempool_ops(); + const char *default_pool_ops = rte_mbuf_best_mempool_ops(); rte_atomic32_init(&synchro); diff --git a/test/test/test_mempool_perf.c b/test/test/test_mempool_perf.c index 70de0b35bd..4c877834e7 100644 --- a/test/test/test_mempool_perf.c +++ b/test/test/test_mempool_perf.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "test.h" @@ -308,7 +309,7 @@ test_mempool_perf(void) if (mp_cache == NULL) goto err; - default_pool_ops = rte_eal_mbuf_default_mempool_ops(); + default_pool_ops = rte_mbuf_best_mempool_ops(); /* Create a mempool based on Default handler */ default_pool = rte_mempool_create_empty("default_pool", MEMPOOL_SIZE,