From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hunt, David" Subject: Re: [PATCH v13 1/3] mempool: support external mempool operations Date: Fri, 17 Jun 2016 07:58:14 +0100 Message-ID: <57639F86.9050503@intel.com> References: <1465976824-83823-1-git-send-email-david.hunt@intel.com> <1466080236-112618-1-git-send-email-david.hunt@intel.com> <1466080236-112618-2-git-send-email-david.hunt@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: olivier.matz@6wind.com, viktorin@rehivetech.com, jerin.jacob@caviumnetworks.com, shreyansh.jain@nxp.com To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id EA05ACC1E for ; Fri, 17 Jun 2016 08:58:17 +0200 (CEST) In-Reply-To: <1466080236-112618-2-git-send-email-david.hunt@intel.com> 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" A comment below: On 16/6/2016 1:30 PM, David Hunt wrote: > +/** > + * Set the ops of a mempool. > + * > + * This can only be done on a mempool that is not populated, i.e. just after > + * a call to rte_mempool_create_empty(). > + * > + * @param mp > + * Pointer to the memory pool. > + * @param name > + * Name of the ops structure to use for this mempool. + * @param pool_config + * Opaque data that can be used by the ops functions. > + * @return > + * - 0: Success; the mempool is now using the requested ops functions. > + * - -EINVAL - Invalid ops struct name provided. > + * - -EEXIST - mempool already has an ops struct assigned. > + */ > +int > +rte_mempool_set_ops_byname(struct rte_mempool *mp, const char *name, > + void *pool_config); > +