From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH v5 7/8] mempool: introduce block size align flag Date: Thu, 7 Sep 2017 10:13:50 +0200 Message-ID: <20170907081349.nznr2qv6f5pgs3ti@neon> References: <20170815060743.21076-1-santosh.shukla@caviumnetworks.com> <20170906112834.32378-1-santosh.shukla@caviumnetworks.com> <20170906112834.32378-8-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 AC48F199B3 for ; Thu, 7 Sep 2017 10:13:57 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20170906112834.32378-8-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 Wed, Sep 06, 2017 at 04:58:33PM +0530, Santosh Shukla wrote: > --- a/lib/librte_mempool/rte_mempool.h > +++ b/lib/librte_mempool/rte_mempool.h > @@ -271,6 +271,10 @@ struct rte_mempool { > * Note: This flag should not be passed by application. > */ > #define MEMPOOL_F_CAPA_PHYS_CONTIG 0x0040 > +/** > + * Align object start address to total elem size > + */ > +#define MEMPOOL_F_BLK_ALIGNED_OBJECTS 0x0080 Same than with the other flag: since the meaning of this flag is not obvious when we read the name, it has to be clearly described. - say that it's virtual address - say that it implies MEMPOOL_F_CAPA_PHYS_CONTIG - say that it can be advertised by a driver and the application should not pass it And, since it shall not be passed by an application, I suggest to add _CAPA too (i.e. MEMPOOL_F_CAPA_BLK_ALIGNED_OBJECTS).