From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hunt, David" Subject: Re: [PATCH v12 1/3] mempool: support external mempool operations Date: Wed, 15 Jun 2016 11:29:51 +0100 Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, olivier.matz@6wind.com, jerin.jacob@caviumnetworks.com, shreyansh.jain@nxp.com To: Jan Viktorin Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 330ACADEE for ; Wed, 15 Jun 2016 12:29:55 +0200 (CEST) In-Reply-To: <20160615121444.3db1d573@pcviktorin.fit.vutbr.cz> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. :) Rgds, Dave.