From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH v11 07/25] eal: introduce device class abstraction Date: Thu, 12 Jul 2018 12:19:09 +0530 Message-ID: <19f9132f-cbaf-5ac5-8159-1f86e478b9f6@nxp.com> References: <2ebad882d26ce9964b313428d5c07fe83acc880a.1531345404.git.gaetan.rivet@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Gaetan Rivet Return-path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50074.outbound.protection.outlook.com [40.107.5.74]) by dpdk.org (Postfix) with ESMTP id 9F1DF1B567 for ; Thu, 12 Jul 2018 08:49:36 +0200 (CEST) In-Reply-To: <2ebad882d26ce9964b313428d5c07fe83acc880a.1531345404.git.gaetan.rivet@6wind.com> Content-Language: en-US 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 Thursday 12 July 2018 03:14 AM, Gaetan Rivet wrote: > This abstraction exists since the infancy of DPDK. > It needs to be fleshed out however, to allow a generic > description of devices properties and capabilities. > > A device class is the northbound interface of the device, intended > for applications to know what it can be used for. > > It is conceptually just above buses. > > Signed-off-by: Gaetan Rivet > --- [...] > --- a/lib/librte_eal/rte_eal_version.map > +++ b/lib/librte_eal/rte_eal_version.map > @@ -244,6 +244,8 @@ DPDK_18.05 { > EXPERIMENTAL { > global: > > + rte_class_register; > + rte_class_unregister; > rte_ctrl_thread_create; > rte_dev_event_callback_register; > rte_dev_event_callback_unregister; > Any reason you don't want the rte_class_find and rte_class_find_by_name as exposed APIs? There is no experimental tag on these APIs either.