From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH v6 8/8] mempool: notify memory area to pool Date: Mon, 25 Sep 2017 13:41:42 +0200 Message-ID: <20170925114141.ynhho56eciqlyxqu@platinum> References: <20170906112834.32378-1-santosh.shukla@caviumnetworks.com> <20170907153042.30890-1-santosh.shukla@caviumnetworks.com> <20170907153042.30890-9-santosh.shukla@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com To: Santosh Shukla Return-path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 30AF7FFA for ; Mon, 25 Sep 2017 13:41:51 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20170907153042.30890-9-santosh.shukla@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Sep 07, 2017 at 09:00:42PM +0530, Santosh Shukla wrote: > HW pool manager e.g. Octeontx SoC demands s/w to program start and end > address of pool. Currently, there is no such api in external mempool. > Introducing rte_mempool_ops_register_memory_area api which will let HW(pool > manager) to know when common layer selects hugepage: > For each hugepage - Notify its start/end address to HW pool manager. > > Signed-off-by: Santosh Shukla > Signed-off-by: Jerin Jacob > > [...] > > +/** > + * @internal wrapper for mempool_ops register_memory_area callback. > + * API to notify the mempool handler if a new memory area is added to pool. > + * if -> when > + * Mempool handler usually get notified once for the case of mempool get full > + * range of memory area. However, if several memory areas exist then mempool > + * handler gets notified each time. Not sure I understand this last paragraph. > + * > + * @param mp > + * Pointer to the memory pool. > + * @param vaddr > + * Pointer to the buffer virtual address > + * @param paddr > + * Pointer to the buffer physical address > + * @param len > + * Pool size Minor: missing dot at the end > + * @return > + * - 0: Success; > + * - ENOTSUP: doesn't support register_memory_area ops (valid error case). Missing minus before ENOTSUP. The dot should be a semicolon instead.