From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so2.wedos.net (wes1-so2.wedos.net [46.28.106.16]) by dpdk.org (Postfix) with ESMTP id 58811C39E for ; Wed, 15 Jun 2016 13:31:27 +0200 (CEST) Received: from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz [147.229.13.147]) by wes1-so2.wedos.net (Postfix) with ESMTPSA id 3rV48t6yfZz8mf; Wed, 15 Jun 2016 13:31:26 +0200 (CEST) Date: Wed, 15 Jun 2016 13:26:21 +0200 From: Jan Viktorin To: "Hunt, David" Cc: dev@dpdk.org, olivier.matz@6wind.com, jerin.jacob@caviumnetworks.com, shreyansh.jain@nxp.com Message-ID: <20160615132621.57b2ecf8@pcviktorin.fit.vutbr.cz> In-Reply-To: <57612E1F.4040607@intel.com> References: <1465919341-3209-1-git-send-email-david.hunt@intel.com> <1465976824-83823-1-git-send-email-david.hunt@intel.com> <1465976824-83823-2-git-send-email-david.hunt@intel.com> <20160615121444.3db1d573@pcviktorin.fit.vutbr.cz> <57612E1F.4040607@intel.com> Organization: RehiveTech MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v12 1/3] mempool: support external mempool operations X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 11:31:28 -0000 On Wed, 15 Jun 2016 11:29:51 +0100 "Hunt, David" wrote: > On 15/6/2016 11:14 AM, Jan Viktorin wrote: > > On Wed, 15 Jun 2016 08:47:02 +0100 > > David Hunt wrote: > > > > [...] > > > > >> + > >> +/** Array of registered ops structs. */ > >> +extern struct rte_mempool_ops_table rte_mempool_ops_table; > >> + > >> +/** > >> + * @internal Get the mempool ops struct from its index. > >> + * > >> + * @param ops_index > >> + * The index of the ops struct in the ops struct table. It must be a valid > >> + * index: (0 <= idx < num_ops). > >> + * @return > >> + * The pointer to the ops struct in the table. > >> + */ > >> +static inline struct rte_mempool_ops * > >> +rte_mempool_ops_get(int ops_index) > > Shouldn't this function be called rte_mempool_get/find_ops instead? > > > > > > Jan, > > I think at this stage that it's probably OK as it is. :) Ok. I just remember some discussion about this. I didn't follow the thread during last days so I wanted to be sure that it's not forgotten. Jan > > Rgds, > Dave. > > > > -- Jan Viktorin E-mail: Viktorin@RehiveTech.com System Architect Web: www.RehiveTech.com RehiveTech Brno, Czech Republic