From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id AE8D41BBE for ; Tue, 12 Apr 2016 00:43:35 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 11 Apr 2016 15:43:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,470,1455004800"; d="scan'208";a="930304592" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.191]) by orsmga001.jf.intel.com with ESMTP; 11 Apr 2016 15:43:33 -0700 Date: Tue, 12 Apr 2016 06:46:11 +0800 From: Yuanhan Liu To: David Hunt Cc: dev@dpdk.org Message-ID: <20160411224611.GI3080@yliu-dev.sh.intel.com> References: <1455634095-4183-1-git-send-email-david.hunt@intel.com> <1457517037-71693-1-git-send-email-david.hunt@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1457517037-71693-1-git-send-email-david.hunt@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v3 0/4] external mempool manager 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: Mon, 11 Apr 2016 22:43:36 -0000 On Wed, Mar 09, 2016 at 09:50:33AM +0000, David Hunt wrote: ... > The external mempool manager needs to provide the following functions. > 1. alloc - allocates the mempool memory, and adds each object onto a ring > 2. put - puts an object back into the mempool once an application has > finished with it > 3. get - gets an object from the mempool for use by the application > 4. get_count - gets the number of available objects in the mempool > 5. free - frees the mempool memory It's a lengthy and great description, and it's a pity that you don't include it in the commit log: cover letter will not be in the history. > > For and example of a simple malloc based mempool manager, see > lib/librte_mempool/custom_mempool.c I didn't see this file. Forgot to include it? --yliu