From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0061.outbound.protection.outlook.com [104.47.40.61]) by dpdk.org (Postfix) with ESMTP id 9904D54AF for ; Wed, 16 Nov 2016 06:07:04 +0100 (CET) Received: from BN6PR03CA0016.namprd03.prod.outlook.com (10.168.230.154) by BN1PR0301MB0737.namprd03.prod.outlook.com (10.160.78.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.10; Wed, 16 Nov 2016 05:07:03 +0000 Received: from BN1BFFO11OLC004.protection.gbl (2a01:111:f400:7c10::1:137) by BN6PR03CA0016.outlook.office365.com (2603:10b6:404:23::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.10 via Frontend Transport; Wed, 16 Nov 2016 05:07:03 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11OLC004.mail.protection.outlook.com (10.58.145.15) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.721.5 via Frontend Transport; Wed, 16 Nov 2016 05:07:02 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:1110; Count:13 Received: from [10.232.14.87] ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id uAG56wVV004410; Tue, 15 Nov 2016 22:07:00 -0700 To: Ferruh Yigit References: <86ece536-1574-6d84-661e-9b9e77180344@nxp.com> <1a19615c-1121-fed4-b34f-aa0f4b654085@intel.com> <1706a89e-7aa0-6a9d-401b-7529026f8589@intel.com> CC: David Marchand , "dev@dpdk.org" From: Shreyansh Jain Message-ID: Date: Wed, 16 Nov 2016 10:39:15 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1706a89e-7aa0-6a9d-401b-7529026f8589@intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-IncomingHeaderCount: 13 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131237464229043583; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(3190300001)(339900001)(336004)(189002)(377454003)(199003)(24454002)(626004)(54356999)(50466002)(76176999)(110136003)(47776003)(65826007)(93886004)(97736004)(85426001)(189998001)(4001350100001)(50986999)(356003)(7846002)(229853002)(6666003)(23676002)(65956001)(64126003)(8676002)(65806001)(6916009)(2950100002)(33646002)(305945005)(5660300001)(68736007)(83506001)(230700001)(106466001)(92566002)(2906002)(77096005)(104016004)(8936002)(4326007)(31686004)(87936001)(105606002)(81166006)(81156014)(31696002)(86362001)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0737; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC004; 1:+ByvXSlx+eTFeChNmSO1S96ypV3YRha5XMLOTzuMmuNdE1s86LS0egcBnvrlE+gY2pdh7yjBEMrLW22YJR84S/HPUbPF7f/joPqnPQgBGQnM5GAHmEtOXxKoGbzV7FQ6fWPyd8pB03IqkD30Yk6k2bd1DRdVaMVK+qQAy6uo7qQ+gDCx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7gO72vUIEWZ0WHxSrr1tssy0CCH/sHvYFyUNGA7Rd9mrHVBfctbQ88X8Z4luFKqCW7+J3rmgYGWbIP1u3drej2+3W1S7k8Xc597mrVn/e4Zx5s28YMVtb13BruwVmNmIdLECmlD5qVguJx/TtYuT3kWwzTqd9bG6dWhVJ7Xd2TB6lerGuE1YjZiY3eGXye9T6tc6vm8AkcwvhhMj4R7PFDDjWUlgukKjwEXeQN957/ZMC3umNVFHGRZ8X+SMVsItVTfoJis5kidEKGUjH28PLZFS4Ur6Tud4A+PPYyVWtRqE9bPQXv3p78T2HJo7X+VT2pt/CCYX3oRmQ4IuXwI1oEfnKy2FQ5ErdgEPnSey1TGES6j0Lo8XjOl5emUaQ== X-MS-Office365-Filtering-Correlation-Id: 3707cebd-b64d-4172-fc20-08d40dde670c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN1PR0301MB0737; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0737; 31:dqliOU5lKneH22QPndU18nIrs6Vg30+HoMx8SP8l4druOkhfwCqNkmyzq5RwADpAiqC5E+P+5o7OLTsGj5uOVOJUgHiaGBNBdh9BbRp1oZ6MN/NIeIjfiO90ns+qTsnB65C5dS/LpkLhbWJCWA8KUxcU+TkGIr+esiexNh8yOO23tGB7CuW6uSjo4qdQIHcF5bAs2Bq4ZgNtl9syKmbK9j0rP41Tzr5er89fBUTuV/B2w1sg2fKddlTCAygdf9ILnqOPKxm0LyhOcdXD82V23FgprXUAHyKDItuIr87ybnw=; 4:SmajI1OWVML/xDJxcejIBY3tD2jkXbTgBAAX+vshKsdiKVuHoqdLph4PnWinfsKC6mEN2ATtP4WUJDdEG4kwrFSuhsocfxsbVZm7W4sTt/eStxMMmv5lnLiD5a7ivuENqhB0h7aMPq322KwGGq2x7Upinox9RffdZ3czC+/lCd0qt1BDQmzZwSJEMNGAg80mo4LYfOqs9KlO2HlvG8LcQdrXvAiZyPQ/gXm9Z/eysyq2oQ42LPM497mYo82YLWCq+qfI5T0NnFLJDlcAgPira4ThOU5CSehxqwyINQAyUoPwldEreBQqK4HTrTYOfOFaeGy8xc5DZaWx1+QLn4Rc+TGxPAcsYCzkwZxP6ERHAr5/GRYRs5PSrruhdmtSOd0/j0zL13yVmKyl6ImLxsBNcB8LNk62BwZR9+tMfTuPlYGpUfkG+C8zPLuWNX8ZStMUqkmH21j81d4QC7v13P6QW+J+zhU2Gcxh/uhHBWY1vP/m4Y9yO95aSrTk0Nc5yMYiMPBXYpYQQ9b4ucHc9QwvSje2eNrA2NhMIHcgoTb+gL8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095035)(601004)(2401047)(13023025)(5005006)(13018025)(13024025)(13017025)(8121501046)(13015025)(3002001)(10201501046)(6055026)(6096035); SRVR:BN1PR0301MB0737; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0737; X-Forefront-PRVS: 01283822F8 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjFQUjAzMDFNQjA3Mzc7MjM6clV5eEVBNExTcEcvR3dQOGQ3VnpEaEdr?= =?utf-8?B?UWx5NWV4WnRmN0luL1QvY2hXcHp6WkdMSVQxYkVxWndLM2NaV3IxMHpOS1pP?= =?utf-8?B?Qyt2RThrOEh6RThNUk5nbmdWU0ZNK21nRUs1bUJJOGRrOUQ0QU92ejJrU08z?= =?utf-8?B?YUJoUldJNXJWTTNuTUFwOEs2QXFhUFI4NUtxQ3RvbFZTZEg0TjM1QTNYdWN6?= =?utf-8?B?QnVvS2FkTkNVa3F2QXhUcmNueW11aHUwbG1iOHkzQmluekZuclkydGpVOStK?= =?utf-8?B?Zm8xTkJURkJyOXFmSWlMV29NV0lPdHZyaGZnL0RRWkJmR1Z4TkYzRmNhZHp0?= =?utf-8?B?Y2wvSnRmN2ZGSkpiWFNaMzhaR3hlMVdXU1RTM2lOeVFnNGxybjlX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8CvurNwtO0I33RraGwI+HntM7yD5XuWujpM81Fixg3tiy7MwahE1jHHEEaYhm14+GIUTlMryAEddEsefkI3lQnIJeOJGyIGto5UO5WK6RTsM+WxPhW0NQfk+0hsLVOpG7F; 24:g5RsvNzYWTQgV8uMzgxf3lAO75l99qTAa2RrzUhwydze6cCq39vBauUjEHN1IGqXwtKzM7WXzewcpZ2S8IH4uwhcf1TgN5Rm7PebVqdL7Ww= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0737; 7:5rG04HGlPFf3rdfgnarBoNMWkMq5tA/rK++VWSUj+oiCl+jMoQdUWdxdjyhJJL22W9wagpAiaOUsu82I/iGWyH8sPmEO4AbGSFeIRMTJyb9GgQFqZJKrzjR2H8RECAYnHQnRMV7yDdtUv+fVP6LHoxRbEW9lq/30lOKLJuVAXBB5gapwWAwHE8FvoMXKMlc/0WrO4mfQodjDsKTTrqudWkBtaW/GWGTDciievseyD5okWumP/66JoBd55vHcQjv7J0zUC2d54v6VCglx7Ur2/sZJmjhDhKfmsTwPSpdtNalYLO5q34AEhuZw8yzr021dlPMS1+2iL/thYL83r0Gw+hM30hMoAlGugiX72nDOLvY= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2016 05:07:02.4519 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0737 Subject: Re: [dpdk-dev] Clarification for eth_driver changes 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: Wed, 16 Nov 2016 05:07:05 -0000 On Monday 14 November 2016 11:08 PM, Ferruh Yigit wrote: [...] > What I was thinking is: > > rte_device/driver are not abstract classes. > > rte_bus device/driver is an abstract class and any bus inherited from > this class. > rte_func device/driver is and abstract class and eth/crypto inherited > from this class. > > eal layer only deal with rte_bus > pmd's only deal with functional device/driver > > but still, it is required to know device <-> driver, and functional <-> > bus, relations. rte_dev/rte_driver are to provide this links. > > But yes this add extra layer and with second thought I am not sure if it > is really possible to separate bus and functionality, this was just an > idea .. [...] I understand your point. It would really nice if we can achieve that level pluggable-ness where drivers would be able to choose a 'profile' - where 'profiles' are like net/crypto etc. In your text, profile==functionality. Maybe once the basic model is in place, we can revisit this idea. - Shreyansh