From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LqOzOA0lIFTu80LgxF7lbl8+KJjuDM/ynX6kdNNAtaM=; b=eET/YtpfUnP1hPh/silkk5WvJGw3a8AeGXdn7RMpEgSDGkC7XCbLhwnzEqOcyakjPn tM+awCDXjMXRALc0zVNXzd3G9ks9up64KQjpnBJkoO2UtlZ6tXqITGsfwjNr5hia3gNX RaLBKckINM3e9nkW1xTuwnSRG2rat7rcK14mq3LaoiAP9pFMYaJOODj9FOrhuWB/xyMn cKoxnrkm5bjOZACDzyWtD0P8QQ//3s5zZDZUFq69Xqn+FSNtFfHMkEdHeJkwW4Nmcqz8 sIlopF9Td6XuUc6WTD5q8Xq6zFkyiXY0ZlVduPYqT7ThBNrCpd6Wj+cOqjcTvKW1KvwL xnUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=LqOzOA0lIFTu80LgxF7lbl8+KJjuDM/ynX6kdNNAtaM=; b=rbb5Pg+pNGQ0iLNoLdxjlrZl9TobNFCzAOg0SWt+cN2BTqeN/67WdsFGGtwW10Nuwz Zk9ovKDI9HZOpGvInJoRXU9/hMmKHGYRV2bvXIV3XzaQHHhexTrqwTe85tN3J3gfSuL0 pNIp/VF6gLppdTuKezt96P/z8nLyZ/EF/kJujTYML6YBNezMK+nxSEXdPpQKfMp3pEko iAv3aYAOdCborJRsabhDBL4GQQ/3n1GKo1fANOjQChMgXzxRekyLgKD1Fj6vgvaUYlCe 5JVN8V6w8hmK/2NUl9Z4jM1iIM7gbK00n19MIEL67dl+aUfhb685PP+dIZw+sFW8FZ70 OfQQ== X-Gm-Message-State: AElRT7GMjaVAfxD74kXvsDbUYByQiGYM8npebuXyaTrmm/VHSkNUcw1v +pRv7SVDxrliwhqb5Yr6ZCbREw== X-Google-Smtp-Source: AIpwx4/eqZofzEhXzRhkw7fKKHU+iSctRQAoJnbOycaBiYGIught4QLHFxAv9e0dy8cypboW7Pejzw== X-Received: by 10.28.106.19 with SMTP id f19mr3840794wmc.116.1522144274634; Tue, 27 Mar 2018 02:51:14 -0700 (PDT) Received: from bidouze.vm.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id p4sm1597695wrf.27.2018.03.27.02.51.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Mar 2018 02:51:13 -0700 (PDT) Date: Tue, 27 Mar 2018 11:51:00 +0200 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet To: Shreyansh Jain Cc: dev@dpdk.org Message-ID: <20180327095100.echm6xesbzl3emdn@bidouze.vm.6wind.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH v3 05/20] eal: introduce device class abstraction 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: Tue, 27 Mar 2018 09:51:15 -0000 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