From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet Subject: Re: [PATCH v3 05/20] eal: introduce device class abstraction Date: Tue, 27 Mar 2018 11:51:00 +0200 Message-ID: <20180327095100.echm6xesbzl3emdn@bidouze.vm.6wind.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org To: Shreyansh Jain Return-path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 34B412BD8 for ; Tue, 27 Mar 2018 11:51:15 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id r82so20609853wme.0 for ; Tue, 27 Mar 2018 02:51:15 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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 Tue, Mar 27, 2018 at 02:08:31PM +0530, Shreyansh Jain wrote: > On 3/27/2018 4:48 AM, Gaetan Rivet wrote: > > Signed-off-by: Gaetan Rivet > > --- > > lib/librte_eal/bsdapp/eal/Makefile | 1 + > > lib/librte_eal/common/Makefile | 2 +- > > lib/librte_eal/common/eal_common_class.c | 62 +++++++++++++++ > > lib/librte_eal/common/include/rte_class.h | 121 +++++++++++++++++++++++++++++ > > lib/librte_eal/common/include/rte_common.h | 1 + > > lib/librte_eal/linuxapp/eal/Makefile | 1 + > > lib/librte_eal/rte_eal_version.map | 2 + > > 7 files changed, 189 insertions(+), 1 deletion(-) > > create mode 100644 lib/librte_eal/common/eal_common_class.c > > create mode 100644 lib/librte_eal/common/include/rte_class.h > > > > [...] > > > + > > +/** > > + * Class iterator to find a particular class. > > + * > > + * This function compares each registered class to find one that matches > > + * the data passed as parameter. > > + * > > + * If the comparison function returns zero this function will stop iterating > > + * over any more classes. To continue a search the class of a previous search > > + * can be passed via the start parameter. > > + * > > + * @param start > > + * Starting point for the iteration. > > + * > > + * @param cmp > > + * Comparison function. > > + * > > + * @param data > > + * Data to pass to comparison function. > > + * > > + * @return > > + * A pointer to a rte_bus structure or NULL in case no class matches > > Trivial: ^^^^^^^^ > Should be rte_class Thanks, will fix. > > [...] > > - > Shreyansh -- Gaëtan Rivet 6WIND