From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0063.outbound.protection.outlook.com [104.47.42.63]) by dpdk.org (Postfix) with ESMTP id 10EAF2B91 for ; Mon, 11 Jul 2016 15:12:37 +0200 (CEST) Received: from DM2PR03CA0037.namprd03.prod.outlook.com (10.141.96.36) by BN3PR03MB1495.namprd03.prod.outlook.com (10.163.35.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.14; Mon, 11 Jul 2016 13:12:34 +0000 Received: from BN1AFFO11FD018.protection.gbl (2a01:111:f400:7c10::114) by DM2PR03CA0037.outlook.office365.com (2a01:111:e400:2428::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Mon, 11 Jul 2016 13:12:34 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; rehivetech.com; dkim=none (message not signed) header.d=none;rehivetech.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 BN1AFFO11FD018.mail.protection.outlook.com (10.58.52.78) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Mon, 11 Jul 2016 13:12:33 +0000 Received: from [10.232.14.199] (Tophie.ap.freescale.net [10.232.14.199]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6BDCU7Y011602; Mon, 11 Jul 2016 06:12:31 -0700 To: Jan Viktorin , References: <20160708190945.24225-1-viktorin@rehivetech.com> CC: , David Marchand From: Shreyansh jain Message-ID: <57839B66.2000604@nxp.com> Date: Mon, 11 Jul 2016 18:43:10 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20160708190945.24225-1-viktorin@rehivetech.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131127163536367601; (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)(339900001)(199003)(377454003)(24454002)(189002)(65956001)(105606002)(586003)(50466002)(83506001)(106466001)(64126003)(85426001)(92566002)(4001350100001)(2950100001)(189998001)(47776003)(8676002)(65806001)(77096005)(86362001)(11100500001)(6806005)(68736007)(8936002)(5001770100001)(356003)(81156014)(81166006)(36756003)(54356999)(99136001)(76176999)(87266999)(50986999)(97736004)(87936001)(33656002)(65816999)(305945005)(7846002)(2906002)(59896002)(4326007)(230700001)(104016004)(23746002)(80316001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1495; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD018; 1:P+fmq8QlZMTCFI4bItCXGTuDU/S05KIMhKJTqCrRWooaia3AuuMfP18J9CxHxsHRCS0WOxnm22XbagA11lEe/mFGA93HJDEFoPzItY4CXmmQgIYysVzHsdGnM74UdhQ0W+vwfdzWClapVLs12c+06dy+CsVEJtJKMEftJ8TxaaoTKQv84fB4TpEPY/l5OhroUa3jo+IPh8kmDAitMc0V3gzv+dtsJHIHWaR92yQ+PHnZfjJytIHbA7a1iRx31PUCcDuE7UGwUTK3veqLw9qIKvHsI1q1LPhsejXjS57K/eKKHKsKnKLdJj/0xkAv2uujUBLw9NJJYMZH8ckeH/wVzDfHhA+CbuJHY/EL5mt4yu8X5m4BhkViUxQc/7ASrqEjjoD4Cch/pitoZXI4eqVk+9DzDsj6kpKOzFTEuxJUS1NNfGteEGTemFaoXE5is+qQNZOKAd715EFgWJlQftSpYfU6XiQjwYDwI+I+nQK9nv18WKZ0tKFFbyCH+9XVjnEepw90ovvAAiy0/Dd6DRtK1xty/6rHeWGHzR93efke747yhZ8f+dSNmttlaDmQO68LX/M/mt6DjtXrQxo+tafC9g== X-MS-Office365-Filtering-Correlation-Id: 9920c131-cf4a-4da4-5ff1-08d3a98d0574 X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1495; 2:5l3FQ1OY1my8SAP18RNDmXpt8InwDpkc/0R4HxgTBEGuCMNbhM/Vq3iDGOjCmyvkSRyNmOGfPJ0s+TUguFR0ua9aeTsRhGqbK8+6rmk2wwAG5Tz1zq5h4Myp0WmuxHgyqsZeHOkORfp6dPcDNHd68yOcn0NdmB7EJ5mYNsg+fi3+lxL8y49T0fMuVI0MVwnB; 3:/e8F/K5vFQKPayhcCzUqJOIqa8VTCuGxQXY+VTlB71Zl7VAMDNYBeuq2dTPLFh9K1uZK8k69WkYumyLU/AwY7pfzmln1p17f5awfbFg/6fDX1yMODvzBL+CSIgleqbihczwyfv8KkQRwkRPgL/ZnIyWsZJVdUDpS9Q/JwEWmCqNyPXn/aBphqIQw988tS7InTvp0YDDnU5Ha5yx86tLsGRVHYkj61VSbo6bqLTMGnfE= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1495; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1495; 25:csMmqqsuczOs2fXaLmEpPZDt6taZlWGbZLeUu7brr5XNx3XmNec0pzDi5W4vagvG1EFEuwOJsuHZDUHNGoaT9qFA7zCGX4vn1L/0FRdfn5m+dppFinb0zFGNJ5ynIfexbC+BaAYQplLbL+j0oepY6QwTsIfZgHfZLk1zHh3rtwvoNQs4wj+cA85c7n7hwGzD7KFy0SrYzGKQF5CqoXkUSRNBFDZtTGinpSKicGCjFS1TK64JPxcgDOS9DM9+ppJAbUvLDrsSScuNsWxiBgVpGmqs6CtB+TYtWyCp1EDYqMJgJT3u2dn6+Bq2tnyhfO+ce1bLzmyGaCRjKberkDneZun10Wjr54k+5QkBtGYQAVHnrB7LrrdwOThfRLo9TYd94fUk2aZ8hggUuYFAsBYNNKxjMIBeX5fxsDINlawsI7lEa8BWWS+CJV2V0ad+ofFMg/nrWcqzJr/7WNL4if8VktuvpFClLphNnq9JVx4hkmrHJD+MqBrEKC7snGNUd5kRvQoFAoorNQ0eill8ZTY3w0zjUh/Lr6m+imU0O/r+ffapaxacoxE6Zk1TCO9iIV+wIzqQqh9wtQNm6qAZdLHSTmoZR/2nG5KMai7+Pzz+GZhdLwmMQAbIm6tERZrak7t1Jx13ioTCQluo3/nWgTBVkGQLT5xeWgjjQJq+wgKUxDeSZzmv3SSibEHkYc6nPG98CqK1HS1zkewPRamjvmeHa5K9tD0uzPcRZyFQy8gWdLE=; 31:0qyRdBp7l9SZWGNY391jd3I0nwg0aqgyZQnQrd4DVTFulyV4pTCDbzixsDogtvHWvwjlTP4JgoY1baW2q+sfHraCZUBv0JMuNIDLdKiz5RReVUbJkfMOd5gl6Y0gXftYieHQp/bp/RK8xXQi18I1jjOMsfXsBGGirC11mM6D530w1pdLFY3RkkFj/XJAmKgEmnS83lsVg2eZ235xCAcrLA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13024025)(13023025)(13018025)(8121501046)(5005006)(13017025)(3002001)(10201501046)(6055026); SRVR:BN3PR03MB1495; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR03MB1495; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1495; 4:bPDHOIT7KsRwbrSNK9lN99R1r4lh7hmpfOMknvDE6Rrwo0hootf8C54L2OCM0p4CYgj3VMfGacTkuBYL64cxlzv/yeiVz/17eiv968nK4rKIvm6Pkyk9H/AEpRFdbumjElAHMxnOfUEY7G9g/GTGt/1ua9QCNz60sWeKyVJacgNFYsiYUGJmiR04vsLYl0pykxJoq7uOVMhB7WEQoMud9OU/F1z0whlUt9YbFDRiSJLbnN7VD8wZURHZS3PbWy5pgir8secg9+lf/cppUUkOUcgLicw9IP7mutkhYf46Gph+bZG/OA2FXAulHZNpTeWKMsLpEjPq2oWh0qB+mWmKdlKUxXUP9/PYbcs9lw5zLOceSaoDUq6kbiUqkYD0NcSe1r6xukg8KL3J8aCk97pQGV4C23Qv8Y7aCiPWUXaKchYIvFo7K+Q7P7j+GsmYges7HxlwfkvgVV53Xuf3seoypMqpFTEO38l2BYQsXYJPljw= X-Forefront-PRVS: 00003DBFE7 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN3PR03MB1495; 23:lwktaQ+BtZLnw1EnHhKJyY9EHj7f/6ULVMG/U?= =?Windows-1252?Q?jXGK5Uk5LFWYrrQ2e4yZJKwKA1Y13zO4LTjZPh0jfxS5PTQHYH0qb9k4?= =?Windows-1252?Q?FXpVNELID+ufXxgkWkZj4hHgYRl8D+caAjxzs6CKLl5MPJiNs+YD4RyC?= =?Windows-1252?Q?ss99rnjTJsNsC841ITaDW16Ym7kjEn/Mlir2+ArxelyOdV36jUEi4T7u?= =?Windows-1252?Q?LlNhXrj8zI8y/jrIlOk808ki2Db0JIcutAosZnlWHecbX4/HmUiCcASQ?= =?Windows-1252?Q?DevJhq/yRXCWsY7WZydHRBH+z2iBYwX5pYJZB4o4mzHnVjITBX59iAmC?= =?Windows-1252?Q?7MD0Q9/L06NCi9XIWXxv6r3m3aoPxWZOLni3po+8E0qqX1iQns54BcsW?= =?Windows-1252?Q?2mKo4lHZpBFBEpvgA7+a6MBmRfu0vL8d/y1ArtfgVozBSDaeJDQ7S6Th?= =?Windows-1252?Q?CZ8k4qz48QCN2Ms/FyTv+Rh44kFt3nPApOwgHGe3HsNR7zPn632J4anj?= =?Windows-1252?Q?W9XMyB70sedyAcqt3Ammic7lh7w6sunzINDwpvLYe40jpsMEbz+JM2Wn?= =?Windows-1252?Q?qbynugYGxILhwC7R7FRgNu7dcRC3GvYQ/mqs5MvegbRWrR0ZDeqVBAHv?= =?Windows-1252?Q?pL8LZVzUmT2q45hzt+mrMbxo4PE2n4+KBtqAn7PWWzihzPZBuFB7F8m8?= =?Windows-1252?Q?8AfwEqOOY2ccu/7XzYyNC2swXgs6QrufDmfjrb9Acn9r2eApaltc7+w1?= =?Windows-1252?Q?f9DstEFhvYl7NVrSpprIPCTKjkTcOqisxDZ7f8raBrczwvpA33E/Tvsr?= =?Windows-1252?Q?2R9a6NKalgwdZhVKzGG6XRfCOrdwX+Q4ufHaE2K8rjI9I5kZnLS1zY/J?= =?Windows-1252?Q?n1bCZWhkx1s5SI5hPr82JOZuTU2UwiYOJR4qfWv8DyN7jkQcoOgmiS1b?= =?Windows-1252?Q?OmMWAsoPhYkYQL1byM8DCx2tv8P3RXVlA+1Ls81KLE/hNcuzaYB/FsyR?= =?Windows-1252?Q?nmzAL3xYCbA6Dd3ccqxo9DYx0SFjJU4mS39og6Xd3QrvpAFfipd4GdZb?= =?Windows-1252?Q?5aNnyqT2EFAjiHqnjuOk2j2JekaLznetIyvAFkpt9UsAK2Vk3EPwHpsZ?= =?Windows-1252?Q?+KTn0nYVKdstxQqFr748VsMp6MabG7YYLhZsaDetiMY35TEwr6U4JHEJ?= =?Windows-1252?Q?cTDoR50JQpdle3Ud8UM5uS8ZdANAOMun2B7r48lrDSiAkqQ+tdEaIR8U?= =?Windows-1252?Q?H8iPi066y6uWFTXEYgWoJDRdeeQSyxJawwi7ecjgOZQoDtUmu4P2n20k?= =?Windows-1252?Q?E46fNd81eRTmQ7PnuhiD5GwUnWJCrfUiMgbSwql4Q4Hxoj3UUd3l0/6A?= =?Windows-1252?Q?DhnReWongkjMk65GkveFIiUBCWn7U4l/w=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1495; 6:GsT+hG9ycC/pRLWCCgwgftk2V5K8YA+wZjeGLy5QyGaM3jaz3RTDcWB/++Hr77cdIa1mS+M/GHMpTHDQCG416KH3edPPc/CMhe/6jV2LGvj0m04T4iiBr+l12tTYQ3SCdoiSZKRPQU3zyVHiA+qb5TihNLIPizdUQKNNv7brWRRqyjTmRCpYXnzBHptium70EXX8ALoODFvRVVIGP6VxnKvbeWU4AD6rE715T6qcUkEJR2CwLwgxYMiFmgaeqzI+9rXX0TNcbv9m9zIC1yIge6R5rMJqawPkSLGkRBmdDhQ=; 5:xZWRwAzztgTd26mYNkzqDGJoLgJgeeuTMMCdUeCc3SbF2wTpbLL16DTxH5vzv5wm4h85Kp7sS+4hikuLf1Hs3QATwB9WJnCzxEJZTy7jtPYyq8/FBwlyGhM4sLYO0lnlcu8e0bhDxi5NbhYwR/gdN/4+xAG1l+e9aa6HMGNNWhM=; 24:HkoNyQqLjW5fQ93tarOKDIo62An9v4xVZFLrSuJa2LrNfdDO5b6/WZcOqSpsbeJcyo1XQN+1J5FpkTuf2zgWQHbmJa/7L75E1YFeHgGWwag=; 7:GH0BJHavR5nILyGJ/I1ZIEQxaJDfF+ExhMir2itpTy/RsSU6Ktn/mMf2t8ZEurdd7BlnCDmQUzoQKjBggeFHAF8pDAOADrm6owPYoOK4dmslx7EskX+gpFus/fgReiYqV+nnphVnhT0dasabftj2deykT9NGSlLwf8C57wAUJVEPqBN3af6USEcnbQf2Gze1qeDCy+AeUKB3oFjPoByNhHwedQY0Mt38ROtozwrrGDKka+BiGSulv1yruE97pl0z SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2016 13:12:33.4495 (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: BN3PR03MB1495 Subject: Re: [dpdk-dev] [PATCH v1 00/15] rte_driver/device infrastructure 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: Mon, 11 Jul 2016 13:12:37 -0000 Hi Jan, On Saturday 09 July 2016 12:39 AM, Jan Viktorin wrote: > Hello, > > based on the discussions with Shreyansh, I propose a patchset with > the important EAL changes. It is incomplete and I suppose to extend > and change certain things in the foreseeable future. > > Important notes: > > * pmd_type is removed > * introduced rte_vdev_driver inheriting rte_driver > * PMD_REGISTER_DRIVER is replaced by RTE_EAL_VDRV_REGISTER > * rte_driver/device integrated into rte_pci_driver/device > * all drivers and devices are in 2 lists - general and bus-specific > > Shreyansh, I hope I do not duplicate your work. I tried to avoid touching > pmd_type but it quite complicated... There is also an initial generalization > of rte_pci_resource. More such generalizations are to be done. My mistake - I didn't even notice this email somehow. In fact, I noticed right when I was about to send the v6 - while searching for my old conversation. I will look through these patches and remove any conflicting change (as much as possible) - I don't think it there would much conflicts except the VDEV area. And, cursory look shows not much duplication - don't worry. > > The init/uninit functions cannot be generalized easily, I think. Both PCI > and VDEV have different requirements. > > No idea about hotplug... > > > The patchset is based on (all rebased on top of 34d279): > > [PATCH v5 00/17] Prepare for rte_device / rte_driver > > > Thanks anybody for some quick review and notes. Added to my list of todo. I will review and reply soon. > > Regards > Jan - Shreyansh [...]