From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wAN2FMdE8r6GmprCDWBhZxmJVJipWimwXzFN7oaPR84=; b=npQyQg1xV0pgbzlMrFyN0FXurlr5FAT+RkIucOvttvwHrpw516jb4sNNV0f8v2JMvT7vGicw9jKp+L30UomqJcfb1QB3UfiS+8GYIa7P/ZYgTNX2BufwRjwgvE/K/m/eb0XzCJIZaX1ntHN8000mgEvKbTGefeOl3YNhMK4M8gM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from [10.232.14.39] (14.142.187.166) by AM6PR04MB4680.eurprd04.prod.outlook.com (2603:10a6:20b:1c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.18; Thu, 12 Jul 2018 06:49:34 +0000 To: Gaetan Rivet References: <2ebad882d26ce9964b313428d5c07fe83acc880a.1531345404.git.gaetan.rivet@6wind.com> Cc: dev@dpdk.org From: Shreyansh Jain Message-ID: <19f9132f-cbaf-5ac5-8159-1f86e478b9f6@nxp.com> Date: Thu, 12 Jul 2018 12:19:09 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <2ebad882d26ce9964b313428d5c07fe83acc880a.1531345404.git.gaetan.rivet@6wind.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::14) To AM6PR04MB4680.eurprd04.prod.outlook.com (2603:10a6:20b:1c::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd770dc4-bc83-4a55-3ae9-08d5e7c3a128 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4680; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4680; 3:yxdoE8zVDKXUoR85aok31qA/HxS38VUfuVJe30CecgpgdyrNmG9OXA7OaJHT3yAln7w92HGn8rrQKjLABrJX/wFauYM+NMHxAvewjvBS2K2rK7AkqqyZkzfTQNoPbnq0PKOKqP1pdmkOrdZPVl3qROXwTG/Mp/rRwIuZuXft/3WRyuI6QIeFa3+nRhhJp2Y1mlmDvOI3Xv9FjvVe59RET66hDTx8mCMdaWMbcnkTwdxIqbswTPH8+G1RnHCAzY3G; 25:xUQBLpSYz1osKMm/zURJncucxSMX9jfXVvhTLyrdrgj2xMQbCxYgbKkRYqHAQGxOIQdMICYMHQWAIgKQZERSxDc1x3nD2/UiIPQTgwbyLc3n0VP/LGtNKYYEn9zIfm+VJA9DAQ0n4bUpp7IvttoKJd4yB75HlnFZe3FDW0N1qBFEe1FtAGnQ3a3RzzrWPnSDslRLBydNUGIjlOjJvtn4EWA9j6ifnBpSfWYRkTIN4FOoQD72BlvZ+M1I5/+ejVDHJ9A4HZc73yhZhI2asSBgPYoGj5fTKElZbJiCVsTdJ2t7bz69NHn9vXkQwjDOz4QMz3YxaoX+usNd3+WNeI/dGQ==; 31:fvOUXmhi1Gmgm0YCqWRaJInVMz1bpOuXE3xtf21qzPOZn+nNy6P8mu3Jg2mcs6A/5efemvrozxSGvmEAA54NeWNw08YtwNGHJV160I5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Antispam-Report-Test: UriScan:(278428928389397); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM6PR04MB4680; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4680; X-Forefront-PRVS: 0731AA2DE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(136003)(39860400002)(396003)(346002)(366004)(376002)(199004)(189003)(105586002)(5660300001)(8936002)(2906002)(50466002)(66066001)(53936002)(16576012)(65956001)(3846002)(47776003)(316002)(65826007)(6116002)(65806001)(186003)(16526019)(26005)(77096007)(230700001)(106356001)(31696002)(52116002)(86362001)(5009440100003)(67846002)(76176011)(52146003)(36756003)(23676004)(2486003)(55236004)(58126008)(97736004)(386003)(64126003)(4326008)(229853002)(305945005)(68736007)(44832011)(25786009)(7736002)(6486002)(11346002)(478600001)(31686004)(956004)(486006)(446003)(8676002)(2616005)(476003)(81156014)(6666003)(6246003)(6916009)(81166006)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4680; H:[10.232.14.39]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTZQUjA0TUI0NjgwOzIzOktNaXFkTzVlalE2QWVxeE52K1VSRWFpL2tk?= =?utf-8?B?V0w4WVZKL1hVa3RHa2w3K2w1NkEvNGs0V0EwaGJtU0lWSmo0MkJZR1l1L1Jh?= =?utf-8?B?eHUxcHdZVEVOejBzQU16d01ydGo0Q24yU2xOeFJOeHBIaHZ2V3ZZSz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WCt6bkV1ZnhqbGRrdFRub3YxYkF0MGNMY25kV0pweVFwNGpD?= =?utf-8?B?VHY2V24xZ2p0MndkTjAxbEZWOHJramM4SmhGQlJlWGhxcmNscEhyYWowZ05j?= =?utf-8?Q?K0VI=3D?= X-Microsoft-Antispam-Message-Info: /ZhVvhGDXeU6qfIpuiN42IbEDUjjisRogzsIWSUWh/GjbPE35cbbYjqLnZNb20pfBxkjJz0r8OfR5+Fkhw2ElLjeqJAMx764dHF7v2Vk9jw7QWyuBOYAI4VBerxvvcUBl1VFyoxiPK11en0m8/vUg7wbUyFgrYF7FGfCvZELfo7ROxfTRRxvbz0JW+vrOXzh+sELpHNuAE7LGAucNn9O7Nz8308WgcgPosl8GQbyInibs0Q30dh0mDNusv+dWprUDJwOKq9qLSKne4spZ2aT1svdob5PBp50sPw85ZpAAK7ihqGQnSIzatFa76W2sb23oa1470GQHqKMTGBD7d3c2z1zfm3HaLq6YqXWLYzxG6M= X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4680; 6:KkV6G7jtSmJ19JqTf+MKaG1cECNvZLceHfQFb7W/SGOMklqx589WIkUnWgNBMMK7jvP9dK83e6Q01cXSqpfVslDfFCJiRYzCrTeCivAK3Jgvf6Dg1DyilQFDOa9uqvOuG5O8D/PCY+0o7BHoeWbmINMAKlxvAAVuk3WfM1+JFatEErctSTi+t4iNZLjpXrvit50vidgTJCu0uuJO1HHCizDvXAj5iMU5mI8+u7n2o2VuLab1LQMtIFVg/V7xZI806prawPQKcnztHCxEGBEzGbvHOsYgKif/w+xMeDPVmvMQXoTWGP0NNEaq/ibnqbkwSg1V0i39W0TCaXpckwCS6mV84nYC1IAq9LeyvJx1DA/xljGAszJeo+JPIukDjeltS8fiMzNzxKv37XSJzKU/IcAfqYHdh8MEMasnaJ//IP0Nc2aQWxaTnX6IRgaHr7wtEYsVNkMFA2SUj/dUydpCnw==; 5:jZWC5px5gzHP58KZixaLPRngBhXep3ijNZjASx2vfDcu4z9g7H7B1CuRCA2yah766vyie+e/f1acjx4HiMVqHWPvJJ/y+lHAltIg23M4jrVR451hjwS2WkV97FKAlkFAecm5ko/FOzUmf+ry3cMMTK/cOkyKVtiijrVNpMCQ8CQ=; 24:VTz4SLYM6nYWAlHVRhBRHG0PmGODfvwQUc+UwzDM4zdHA03lEJH4LG15gzZ1AKQXny0NGNAu8iBD4sicW646sNC1ws6gxzy1NqtBEbgj8yY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4680; 7:/0NFZUqZ5yBhxcqCWK3RgBsdzabtVfX5BzsMkzUoFKaz5YP3SmS5ZIwIev+udnfHT9Ap2iSq5jzn6/UgkWPR0YA3xfnon+5JWkizx4YQSdF0sfwoe2z4nZOJL1upM7vsyElCrbGIDQq11RqBxzozF2RXdiyJ+llhK3iw9ZzOLz+ZFM1JKoxZAwGI+yvxFfFDKTFoCEZLjuiRV6kBuydsUmmCQiEE12iU+h7Pzjoj9eqpxwUm+2y3PpOTJzS6PpES X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2018 06:49:34.5186 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd770dc4-bc83-4a55-3ae9-08d5e7c3a128 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4680 Subject: Re: [dpdk-dev] [PATCH v11 07/25] 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: Thu, 12 Jul 2018 06:49:36 -0000 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.