From mboxrd@z Thu Jan 1 00:00:00 1970 From: santosh Subject: Re: [PATCH] test/mempool: improve default mempool ops selection Date: Tue, 12 Dec 2017 20:40:43 +0530 Message-ID: <8e63e5f6-36e4-5d0d-af64-b15515f4dfeb@caviumnetworks.com> References: <20171117180703.4085-1-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: olivier.matz@6wind.com To: Jerin Jacob , dev@dpdk.org Return-path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0063.outbound.protection.outlook.com [104.47.41.63]) by dpdk.org (Postfix) with ESMTP id 068AB237 for ; Tue, 12 Dec 2017 16:11:06 +0100 (CET) In-Reply-To: <20171117180703.4085-1-jerin.jacob@caviumnetworks.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Friday 17 November 2017 11:37 PM, Jerin Jacob wrote: > Use of rte_eal_mbuf_default_mempool_ops() API will > allow to override pool handler through "--mbuf-pool-ops-name" > eal command line argument. > > Signed-off-by: Jerin Jacob > --- > test/test/test_mempool.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c > index 37ead503b..46eb5ce06 100644 > --- a/test/test/test_mempool.c > +++ b/test/test/test_mempool.c > @@ -565,7 +565,7 @@ test_mempool(void) > > /* Create a mempool based on Default handler */ > printf("Testing %s mempool handler\n", > - RTE_MBUF_DEFAULT_MEMPOOL_OPS); > + rte_eal_mbuf_default_mempool_ops()); > default_pool = rte_mempool_create_empty("default_pool", > MEMPOOL_SIZE, > MEMPOOL_ELT_SIZE, > @@ -577,7 +577,7 @@ test_mempool(void) > goto err; > } > if (rte_mempool_set_ops_byname(default_pool, > - RTE_MBUF_DEFAULT_MEMPOOL_OPS, NULL) < 0) { > + rte_eal_mbuf_default_mempool_ops(), NULL) < 0) { > printf("cannot set %s handler\n", > RTE_MBUF_DEFAULT_MEMPOOL_OPS); Pl. replace error printf _ops with _mbuf_default_mempool_ops. With that: Acked-by: Santosh Shukla Thanks.