From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 903A61B2F6 for ; Fri, 19 Jan 2018 11:02:04 +0100 (CET) Received: from lfbn-lil-1-110-231.w90-45.abo.wanadoo.fr ([90.45.197.231] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ecTUo-0001Fw-DZ; Fri, 19 Jan 2018 11:02:08 +0100 Received: by droids-corp.org (sSMTP sendmail emulation); Fri, 19 Jan 2018 11:01:56 +0100 Date: Fri, 19 Jan 2018 11:01:56 +0100 From: Olivier Matz To: Hemant Agrawal Cc: dev@dpdk.org, jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, Pavan Nikhilesh Message-ID: <20180119100156.575fos5qseb2uqic@platinum> References: <1515996674-26338-1-git-send-email-hemant.agrawal@nxp.com> <1516281992-6873-1-git-send-email-hemant.agrawal@nxp.com> <1516281992-6873-6-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516281992-6873-6-git-send-email-hemant.agrawal@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH v3 5/7] app/testpmd: set preferred mempool as default pktpool X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 10:02:04 -0000 On Thu, Jan 18, 2018 at 06:56:30PM +0530, Hemant Agrawal wrote: > From: Pavan Nikhilesh > > Set the mempool preferred by the ethernet devices as default mbuf > mempool before creating the pktpool. > > Signed-off-by: Pavan Nikhilesh > --- > app/test-pmd/testpmd.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c > index 5dc8cca..34e07c1 100644 > --- a/app/test-pmd/testpmd.c > +++ b/app/test-pmd/testpmd.c > @@ -38,6 +38,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -499,6 +500,8 @@ mbuf_pool_create(uint16_t mbuf_seg_size, unsigned nb_mbuf, > rte_mempool_obj_iter(rte_mp, rte_pktmbuf_init, NULL); > } else { > /* wrapper to rte_mempool_create() */ > + RTE_LOG(INFO, USER1, "preferred mempool ops %s selected\n", > + rte_mbuf_best_mempool_ops()); Since 285fd1019333 ("app/testpmd: register a specific log type") we don't use USER1 in testpmd. > rte_mp = rte_pktmbuf_pool_create(pool_name, nb_mbuf, > mb_mempool_cache, 0, mbuf_seg_size, socket_id); > } > -- > 2.7.4 >