From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0064.outbound.protection.outlook.com [104.47.38.64]) by dpdk.org (Postfix) with ESMTP id 90005FFA for ; Sat, 26 Nov 2016 01:59:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XfJdkFqkMy6Gog8icrq47x/h4I+BzY2vJHJcu7/6vfo=; b=HjY3DP+ZqtAubhHavoohRsW5qu6MpYWJZsvtyMlXRP5KRGlxgRJv5Bn7cQENzy8B1qGHUbSls3luC9t8OOpnRWUZL1ZtgdlMZHF1SbLFrNoWUXgjfcgYgUVJJEPm3s5Ag1ganEEPfLrWk/qYwkUFDN+XP0QmDZBBaExj6ng24FE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from svelivela-lt.caveonetworks.com (50.233.148.156) by BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.707.6; Sat, 26 Nov 2016 00:58:02 +0000 Date: Sat, 26 Nov 2016 06:27:57 +0530 From: Jerin Jacob To: Thomas Monjalon CC: Bruce Richardson , , , , Message-ID: <20161126005756.GA10955@svelivela-lt.caveonetworks.com> References: <1479447902-3700-1-git-send-email-jerin.jacob@caviumnetworks.com> <20161125002334.GA21048@svelivela-lt.caveonetworks.com> <20161125110053.GA149796@bricha3-MOBL3.ger.corp.intel.com> <4424470.41x0ShzqNA@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <4424470.41x0ShzqNA@xps13> User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: DM2PR03CA0008.namprd03.prod.outlook.com (10.141.96.18) To BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 2:/YvbgxG2RM1j3Bt0qzB7MdSpLPlfwcjaYN77LWNH5CTFli6YgoEdF0VQiwBnQkR5YfqZTsFxF+7IGvHrJlELOyznzDRBwQ9amTOKsrjzhB78fljn7AEW0f1H9IZkfTocWSHDA0IqsQGti0qk0ikiqMPKWsSGJ1wsVmT8oGY5WZs=; 3:/C3+wx52UUzM/DXx9x5+6b+n2Vo0rB/JLw6QhAKDBJ+R22t3d6EMyEA0UAdW0mKpyswkq7wgkXWi3EuQ3gfSPr8jl0GbyI9dsXLUJOmF3+S5T2kVoNXqC01kqtPZ+JtkonIf5lkPA2MRxIFVrUUEGzzquWx6z80D+P4P15ronwU= X-MS-Office365-Filtering-Correlation-Id: 480d4d11-79b4-45d5-9763-08d415974666 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 25:SkmU3hbgAMnpyJh9rebnr61uN2du4Kbq0HuxO9Mq9FaUoef7jMl+boMGnDiDTVcI/BU8i2l4nXjgGh+tPA5XV9BGLr0trTEiq5F62T+jYCB//2JulmzQ/0oL0p6YBJ/zBfwDMI2mKA1eqMEaYcG5AGw7ScbLgL4AUaRE0MCd811KdCrleM9z/17qgcwD/ytTrDrf65XuB4XirCP7hKZQz92eXsaHS9IAZrm8ZxTPRJ9EuHivByx5dWTLPe9Yk4yUChG+bzi5bjscKFiAW7lMwsxaUCE/mcsUbkFkjDcrbZZlpHVCI4czxvqi8S9c7dtzYVpQuOXeEean98ywQxaQ9Sq1MnxOqgE/HA0xuQguW3eiCh4pkLO3ivi3IFc9rRYwMAJiy7GRRzE+YneLuZvm922JTlSZ67HoWZIZu0tqdZsp/WvhDA5Mw1PT4oCC12WtEUvKb8UGQXchgtMjC0h+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6LvxsulBgErE8q6XYk9++XEADRBVgzhuGHVqy2FC27aDB8iQB31WlWFsO+zfihS+buSKAyMLocp0SleEBAq14GNsK4azYLIEi1kKHuwBIER6QezkY1Z6Q6E0/+V6iUzmTs9bLwgPOPWU4JyK54Rp5ICxZke2oQRGtqeYneqXfnVDXtUCAApmByaYeT7cyFj57WosQHfVGOpFrQwlX7hF6vwSqK4OKnVN+Rte4/huRyAUyJDcpUc1ZK5rqf++CX0BuSEfAT7euXxLvqttapTK6dClf7RV7ltvcA7DLXbQDCM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6045199)(6060326)(6040361)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6061324)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(20161123558021); SRVR:BLUPR0701MB1716; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 4:TY9B/WsJ543o5Fg947Hx2OzmBnmASvttC3AVRmBtkQ86ZnKSBS6SjJNgpH03JjpJ19nZdh3J8ProuuFR1MZHF+2t5Z0RV7Qbip/dpZul8gqj4mYjv5NFD6jKAUIhN2l76MGj5+0INr3zgl5RyDTNHUrxyXoSJtBjpOaxR7PV4r8qxuuJTF227YTIhIcTaDzYhIE7SEBVC0dKZR+jdVDrYtkJvS5mxA2XStfdPKDc8x8iaOvBzu0VMYWAR/AmIZr7x30/MooPgF7ADFIMLXLWp0s+AyeAVijeMMXAxzeG50jsd6JrBPabERLLqeNBje7NpKNmakkOI4yT5vZgI0g42CxAQbzoMwp/hVv6dG54jQU/XVcbziAODwKRPMJRm9Pgd2U/AZaZ4h2wttYLWSD3Ml8/hQBaV5ypeuwjp/M6LDx/Z3071GLnyARlMUILDM/6owXYKQqrTIcaNVEAsjGb1+70MfEG4s0QXrXpGCRk+5WszkNl/ttmSicdk+eOYWeRuE+0RYkPifVTUHvbe864yXv8vGhoA1U8laOP76JIDt0iyS9Njsg5X9NcxLJrHX5riDMpUKe98Lc/jzF9+ToceGrtZWwzexQPuceDesCeNK2y3bQS84fXLbwlbmJAq4j+Byki0HDQFARMnc0xQ97MvKSdV2UWSbfy/4aQfTcyUWIaQBczkSMrfdmmpcp8PaoQ X-Forefront-PRVS: 0138CD935C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(377424004)(24454002)(189002)(4326007)(39410400001)(2906002)(6116002)(68736007)(4001350100001)(8676002)(39380400001)(47776003)(42186005)(3846002)(93886004)(53416004)(106356001)(38730400001)(189998001)(229853002)(4001150100001)(1076002)(83506001)(7736002)(50986999)(9686002)(305945005)(7846002)(8666005)(76176999)(33656002)(69596002)(81156014)(81166006)(5660300001)(110136003)(733004)(39450400002)(15395725005)(105586002)(46406003)(50466002)(97756001)(6916009)(97736004)(66066001)(92566002)(6666003)(23726003)(2950100002)(54356999)(42882006)(101416001)(39400400001)(18370500001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1716; H:svelivela-lt.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 23:RBvuTjZJSuWrvPeMBJKDblK//kHYxCTliTpilkz?= =?us-ascii?Q?ZphfnN0l9ZrvejUUSTATAlIM5qXtwJQUpbzN2qzln6Tgetc5T0AL/HwXeape?= =?us-ascii?Q?uD373+N3bnxyXql7C+BB6XLOuly5cDV12v/6K0uNY3ikVmzclZWpHhOsgez7?= =?us-ascii?Q?OwLwp1NogrVG/XGWmhM9r5C4nXna81lBxe1sUyvRoxonm/y6CkwcgCxvTcGk?= =?us-ascii?Q?+8uL0Q82geUdE8YQGIAwZUfTHU3/Q2CyQ5OOwo6c4p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3MRXQPWT3xmb72JMfbkOyBEGSEgAJcDd3x+N0r6WhvJRZA6RKeHXBMt0HHLQhCE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:+ymFbS0zSjy4aMzQ25XlQCfKBLCLnzMfuXy5t8hCYAowY+QZ7C5ZDpO8EeBnuRpPLy8gh0bp9x5EoG+267pUYum8ckcr8D/EbOndGKFf4o8qrc1GkIl8dH1hcq0c057QXabkBLFEgNfp8KJkQ1I82iD34+jFlN4o2eJAxqQrGdppd7z7Ny29ZqnugqDmAtJSryk1hbyMJsoNDKqLimbPDt22tUqOwiEMbQ7FRrxQYx3SkOHF5gY61mLw8gPy3KVsZtmzdwHR+cpEYMSp1aGkdaCja30rfVt3mSGjjeLtmsM0R7wXeUzLlxZG6cuMKU/HQhNt++fFNTx8tNCarTfgbBsQBYiDmXSMdCzZVPZc3Hg= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2016 00:58:02.4424 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: Re: [dpdk-dev] [PATCH 1/4] eventdev: introduce event driven programming model X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Nov 2016 00:59:08 -0000 On Fri, Nov 25, 2016 at 02:09:22PM +0100, Thomas Monjalon wrote: > 2016-11-25 11:00, Bruce Richardson: > > On Fri, Nov 25, 2016 at 05:53:34AM +0530, Jerin Jacob wrote: > > > On Thu, Nov 24, 2016 at 04:35:56PM +0100, Thomas Monjalon wrote: > > > > 2016-11-24 07:29, Jerin Jacob: > > > > > On Wed, Nov 23, 2016 at 07:39:09PM +0100, Thomas Monjalon wrote: > > > > > > 2016-11-18 11:14, Jerin Jacob: > > > > > > > +#define EVENTDEV_NAME_SKELETON_PMD event_skeleton > > > > > > > +/**< Skeleton event device PMD name */ > > > > > > > > > > > > I do not understand this #define. > > > > > > > > > > Applications can explicitly request the a specific driver though driver > > > > > name. This will go as argument to rte_event_dev_get_dev_id(const char *name). > > > > > The reason for keeping this #define in rte_eventdev.h is that, > > > > > application needs to include only rte_eventdev.h not rte_eventdev_pmd.h. > > > > > > > > So each driver must register its name in the API? > > > > Is it really needed? > > > > > > Otherwise how application knows the name of the driver. > > > The similar scheme used in cryptodev. > > > http://dpdk.org/browse/dpdk/tree/lib/librte_cryptodev/rte_cryptodev.h#n53 > > > No strong opinion here. Open for suggestions. > > > > > > > I like having a name registered. I think we need a scheme where an app > > can find and use an implementation using a specific driver. > > I do not like having the driver names in the API. > An API should not know its drivers. > If an application do some driver-specific processing, it knows > the driver name as well. The driver name is written in the driver. If Bruce don't have further objection, Then I will go with Thomas's suggestion.