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 985E82B9C for ; Mon, 25 Sep 2017 09:28:49 +0200 (CEST) Received: from lfbn-lil-1-182-75.w90-45.abo.wanadoo.fr ([90.45.31.75] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dwNuR-0003JB-A1; Mon, 25 Sep 2017 09:34:33 +0200 Received: by droids-corp.org (sSMTP sendmail emulation); Mon, 25 Sep 2017 09:28:41 +0200 Date: Mon, 25 Sep 2017 09:28:41 +0200 From: Olivier MATZ To: Santosh Shukla Cc: dev@dpdk.org, thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com Message-ID: <20170925072840.uyphm7flinn33suj@platinum> References: <20170815080717.9413-1-santosh.shukla@caviumnetworks.com> <20170911151837.25092-1-santosh.shukla@caviumnetworks.com> <20170911151837.25092-2-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170911151837.25092-2-santosh.shukla@caviumnetworks.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH v4 1/2] eal: allow user to override default pool handle 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: Mon, 25 Sep 2017 07:28:49 -0000 On Mon, Sep 11, 2017 at 08:48:36PM +0530, Santosh Shukla wrote: > DPDK has support for both sw and hw mempool and > currently user is limited to use ring_mp_mc pool. > In case user want to use other pool handle, > need to update config RTE_MEMPOOL_OPS_DEFAULT, then > build and run with desired pool handle. > > Introducing eal option to override default pool handle. > > Now user can override the RTE_MEMPOOL_OPS_DEFAULT by passing > pool handle to eal `--mbuf-pool-ops=""`. > > Signed-off-by: Santosh Shukla > Acked-by: Hemant Agrawal > > [...] > > --- a/lib/librte_eal/common/eal_internal_cfg.h > +++ b/lib/librte_eal/common/eal_internal_cfg.h > @@ -82,7 +82,7 @@ struct internal_config { > volatile enum rte_intr_mode vfio_intr_mode; > const char *hugefile_prefix; /**< the base filename of hugetlbfs files */ > const char *hugepage_dir; /**< specific hugetlbfs directory to use */ > - > + const char *mbuf_pool_name; /**< mbuf pool name */ > unsigned num_hugepage_sizes; /**< how many sizes on this system */ > struct hugepage_info hugepage_info[MAX_HUGEPAGE_SIZES]; > }; What do you think about mbuf_pool_ops_name instead? I'm afraid of the confusion we could have with the name of the mempool.