From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: [PATCH 2/2] test: use the best mempool ops API to get mbuf pool Date: Fri, 2 Feb 2018 01:17:07 +0530 Message-ID: <1517514427-28843-2-git-send-email-hemant.agrawal@nxp.com> References: <1517514427-28843-1-git-send-email-hemant.agrawal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain Cc: thomas@monjalon.net, dev@dpdk.org To: olivier.matz@6wind.com, pbhagavatula@caviumnetworks.com Return-path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00040.outbound.protection.outlook.com [40.107.0.40]) by dpdk.org (Postfix) with ESMTP id 1A0E34D3A for ; Thu, 1 Feb 2018 20:48:38 +0100 (CET) In-Reply-To: <1517514427-28843-1-git-send-email-hemant.agrawal@nxp.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch replaces the uses of default mempool ops API with newly supported best_mempool_ops API. Signed-off-by: Hemant Agrawal --- test/test/test_mempool.c | 3 ++- test/test/test_mempool_perf.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c index f39df5a..63f921e 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 70de0b3..dfeefab 100644 --- a/test/test/test_mempool_perf.c +++ b/test/test/test_mempool_perf.c @@ -25,7 +25,7 @@ #include #include #include - +#include #include "test.h" /* @@ -308,7 +308,8 @@ 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, -- 2.7.4