From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 3876A107A for ; Thu, 14 Dec 2017 14:36:51 +0100 (CET) Received: from lfbn-lil-1-110-231.w90-45.abo.wanadoo.fr ([90.45.197.231] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ePTn2-0007Yn-4I; Thu, 14 Dec 2017 14:43:09 +0100 Received: by droids-corp.org (sSMTP sendmail emulation); Thu, 14 Dec 2017 14:36:41 +0100 Date: Thu, 14 Dec 2017 14:36:41 +0100 From: Olivier MATZ To: Andrew Rybchenko Cc: dev@dpdk.org, "Artem V. Andreev" Message-ID: <20171214133640.3obnjsw7yu5sbq4w@platinum> References: <1511539591-20966-1-git-send-email-arybchenko@solarflare.com> <1511539591-20966-2-git-send-email-arybchenko@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1511539591-20966-2-git-send-email-arybchenko@solarflare.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [RFC PATCH 1/6] mempool: implement abstract mempool info API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 13:36:51 -0000 On Fri, Nov 24, 2017 at 04:06:26PM +0000, Andrew Rybchenko wrote: > From: "Artem V. Andreev" > > Primarily, it is intended as a way for the mempool driver to provide > additional information on how it lays up objects inside the mempool. > > Signed-off-by: Artem V. Andreev > Signed-off-by: Andrew Rybchenko > --- > lib/librte_mempool/rte_mempool.h | 31 +++++++++++++++++++++++++++++++ > lib/librte_mempool/rte_mempool_ops.c | 15 +++++++++++++++ > 2 files changed, 46 insertions(+) > > diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h > index 721227f..3c59d36 100644 > --- a/lib/librte_mempool/rte_mempool.h > +++ b/lib/librte_mempool/rte_mempool.h > @@ -217,6 +217,11 @@ struct rte_mempool_memhdr { > void *opaque; /**< Argument passed to the free callback */ > }; > > +/* > + * Additional information about the mempool > + */ > +struct rte_mempool_info; > + While there is no compilation issue, I find a bit strange to define this API without defining the content of rte_mempool_info.