From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0071.outbound.protection.outlook.com [104.47.32.71]) by dpdk.org (Postfix) with ESMTP id 779232C36 for ; Fri, 6 Jan 2017 13:00:28 +0100 (CET) Received: from CY4PR03CA0017.namprd03.prod.outlook.com (10.168.162.27) by BN1PR0301MB0740.namprd03.prod.outlook.com (10.160.78.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Fri, 6 Jan 2017 12:00:26 +0000 Received: from BN1BFFO11FD048.protection.gbl (2a01:111:f400:7c10::1:116) by CY4PR03CA0017.outlook.office365.com (2603:10b6:903:33::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7 via Frontend Transport; Fri, 6 Jan 2017 12:00:26 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD048.mail.protection.outlook.com (10.58.145.3) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Fri, 6 Jan 2017 12:00:25 +0000 Received: from [10.232.14.87] ([10.232.14.87]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v06C0NDm026819; Fri, 6 Jan 2017 05:00:24 -0700 To: Thomas Monjalon References: <1482756644-13726-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-9-git-send-email-shreyansh.jain@nxp.com> <32257536.1rHviD2EUb@xps13> CC: , From: Shreyansh Jain Message-ID: <12001366-5c91-5b89-e9c5-e85236f7de78@nxp.com> Date: Fri, 6 Jan 2017 17:33:56 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <32257536.1rHviD2EUb@xps13> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131281776259315342; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7916002)(39850400002)(39410400002)(39380400002)(39450400003)(39400400002)(39860400002)(39840400002)(2980300002)(1109001)(1110001)(339900001)(24454002)(199003)(189002)(377424004)(377454003)(50986999)(54356999)(76176999)(83506001)(6666003)(229853002)(626004)(47776003)(65826007)(5660300001)(54906002)(38730400001)(77096006)(36756003)(2906002)(2950100002)(6916009)(110136003)(230700001)(356003)(104016004)(305945005)(4326007)(85426001)(81166006)(33646002)(31686004)(86362001)(81156014)(8936002)(68736007)(92566002)(50466002)(105606002)(106466001)(69596002)(8676002)(31696002)(93886004)(23746002)(65956001)(4001350100001)(4001150100001)(97736004)(64126003)(189998001)(65806001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0740; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD048; 1:8muuhF5gT1ldHhyp4cM36QLA0g685sH64jgCPxMCvJxwcF0r3FfiCgc39a6t2N3G/RQT7zwaZlpyrMDUSRWxqKTGsHGF5cNUgBzzTF3vNhoKACqv5A6vXak4lLOMB5IoSnaLFNKbvgGR0VElV9GB+OZcvIOv+edd1wjtpGC9XA9U7ixIWJZOfA+UfosnCVUp7vpCaM2X4Tsy42EOVu8zs34Lr8S77YPfWd3gExqpkis4F4LlfoZF6Jk2jnKBT+GwIyzTHGulSLaKBlxXhF63rn1GNBy9qK5YEuPZvqxkUsUmmaTMAm9CtddhdkjIT4RaAPApB3MCXXPc2qejtpMCtU+BsZP1o3jF/tUiobOhwwz8CB+r9ixYJWO0QyseSdw4NoPko3G/GjSzp0glu4s2E24oUSxPR/uOarzXerCVaSzD3mvu5K9EWIOpSHOHp7hL74Xzp73BIC+grtd8NpM5Z1KjHNWNQDhYU7XdkttaTAjm2pSighGe6W2Pf3+DPfh+rO7civK1e8ltrITSOhsYo7AvdTGoSU1nKnodpB2bEnHApvNQmn2lCALYTX4tEFah X-MS-Office365-Filtering-Correlation-Id: 1ad6bba6-f028-4976-d535-08d4362b99df X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN1PR0301MB0740; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0740; 3:5vKqGInbdEhdeLlPgkMOCCm2/QxFghQkvsgumcgsWxytjX/tToxr8qQ6i/yoFSC9KPtsPmzzvrcfCfRTvXzaHizSAXMsNp2DnO/G8sMFwi2ZpOPzgRF3VyG5PULFTXTEFLDu9bGDVSoZfbNkzcq3aCrTxlN8t1eQalUmU/VMxj5pYQuBJt4w8Bo86z2ogQD8Segnjv3o1MgYjWuw1aG18J7cxBAh9kYNzZPjK/2+rkZaTok87vL3CfNQY7lH8mIKQ4WtDoExLzV/GnJsUr/ut6KjS1rVh923LopFK7jA66xEdNZfkceABvW2BaLWSxGy6gjP10SGO2VMDyEuJ+mjFBe1HfW5wXjrHDantplbPakyGCPu9VHMM2RJNkaXMZn7; 25:DG3E+FjUyVHwiZBSxzw7og+Q12hQqAf+Zw3ohUPIDal6lP7zxjnXdck98s7SZjU3JfSDfGPus5yjOFxS4TlTXRGAPjjsA9ZmAJAYrLIAWiS+s3NlmD/Eu51qcDobtt057iDjJZvQ6rEkbuBhiTH/N7bERmmMmc0tLVjCyd8CjPb06T6yYFBwW/wb3LF6R0KxW87bLRUtfO5654JzmtTbm31ELiaLEx8Il4e1aueJXu7mq6QT8DyKejxYPynlFTwDJPiYHB3qNqeLa0uXJGNW5ahGIpL7Odx5uYTMQBtWkmNhXMJ7hnDJNihLbiOHs7yPvk5Wt6P6w8SzYRy2VKuxr9kNoLzVQ7WPIMmY/m63Fd/L4+GPsYw+EyRvFkBTuLeh/4QJdy42Xw7DEaz4DJHxixHWa0vYZaXoua7QRGVWlxFyeS9qqcwsUR/PUn/Vh5ECaXk8wKFjqz2LZ+PiKq96xQ== X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0740; 31:lKLoak2KUFPXiNwufeQqkHP9ErTCROHQdEJTA2SdE7qdyXLCtKXGs4PlJox57Rdb2bVPehA8bOBabbFr2kIdxGVr3gC/ngMfQHYIcUhhtEUmWs30B4dzSVpYcb3PItU934br4XY2xQr7bDo+yQKOnfRtmSi8naYlMdtj33uN0zRRgyaT/qAigEQYViO4DPpHaInELGPw7GD7BJRnAvoyJnL2lBixEektL+I5eQQxO8hlsZC34CbpKlQ6t5/OTeuN1IJIYXJcIMzxQPs++4t1Cg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13023025)(13017025)(13015025)(13024025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123563025)(20161123565025); SRVR:BN1PR0301MB0740; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0740; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0740; 4:hc9CZqEfq1iusBt0EBCSjfYl2QsrWQfn4EFejfkMO1vuBuNV4osYw/fczFTT8bjg/vMzqrzGaaHBsor8RpU3CkCRSJkZYw/NZ3rCEPiX4V6FtyMHofYfRTPHr8YVRDF5h+7TWGzZbEaMZZy4RviniLUDByyLMfV2/qz3MnpDkgt0agkwCCBUVcxHVsASSU1GXYzSoFVCvVT/twbQ9TxhBGQ6i1evsAF2672w9jbs+/kAnD2dbaDmReMMl6DvlcphO1Lxp7I9Cac+Vl3aWSb5o7BC3Ou3EQrlxDSjIt/Jf+VxwcMfDRijNXkpZtaLq2gfe/9MPS7hkA1HGsFt8ByOjFqzwcH9RvOyED2sGeZkZGEa2NHiVM8dZempXZjKV2eIw1WZG9LJn3TXotTFKIuHIrmrveXITttCM7lB/SmHCQjnMEDGnKgK+vQj9dcERifAt6dbwyOZbw4hG1We5UV0g33JCTJiK4gZJEQ/n4UqfZIGuyuutZY9YpO+EE4UJHwPfvlWa0itAUvzQB2n3Yzb8bODxU7fxL3KySSGE6B8gXLFzT/5htwsCd9sVpahjJQllPt607xhV1aiGinYoNKqDT1jgvgEO/xDLuJkTBjYXgYjTAUibV5wvJcJO9gGAQ45TV9/1Itzjg4hj8KA1YCEBzK4G3sSf2G6gGvEZvvjFvNCOa7In3oC9g3eB9Xp/g8PEbURQOuvnWvyu7SwUkWOUWhzNa86CZytIeu+j8SC15xpqfvc2J4n9X4K0jcNLFPJ X-Forefront-PRVS: 01792087B6 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN1PR0301MB0740; 23:U9/Ep3lzo3Zl+OXvgq+gI3KsmQcjSbpUoKb?= =?Windows-1252?Q?YX9jaRg5udyJAIg8jW4AsnvNVDH6jzhGVbrlvlSoNlod1WoPAhvK6yr0?= =?Windows-1252?Q?rLwvqisSzELWiUwcoRRR1f6bI94Uzhxb8RZxpZnBm+b6VLk8eUGilN0H?= =?Windows-1252?Q?JrynXIcxlgjNhM3oz9JInGXFZATCjRxpM8FUPSRTjW1irpWD/crjRLUs?= =?Windows-1252?Q?3ckbYevG01yYwejOc2RmdPBdNs66AuD/FaigmizgZq1DbCwEfeRSJhLM?= =?Windows-1252?Q?SoKLrij9sVBmje5IhTvoYyXnjG0UMdeRWelkIxRMD2W5Wg/308wpNaOA?= =?Windows-1252?Q?BLMbajB1Rat5j1UCmYh5uqOMrCdBvFZGMMOT+fpn1WIYLq385jGnclf/?= =?Windows-1252?Q?iR1OMa2SLZ3lJaryJIM9X/3AXXs1yruOk1WXiKikcItA8YovJdqnS3aB?= =?Windows-1252?Q?kaJ4I3VTCqtdgK/yd1gVdYlODg5Y+jaw2E1QYIEw9jYW0u9B0n1u7/FA?= =?Windows-1252?Q?b+cvvXOR0aK1ToO7yzr4kky7aEWRt7yIR4Bms8unB/De+ZGmoL3ikUIF?= =?Windows-1252?Q?Fo+ba3JTY6lb6pYCTA3lCBwVtm7J78J3+i4uPpEebNAiqQOt0245eo+6?= =?Windows-1252?Q?gUit008MG0iFx6pP7Aiw0TTSmcQUUoZuB3DKeUqDPIcL9zRu2PxaSEc+?= =?Windows-1252?Q?eN3XdvdIuqpb+LK/3yQrbCLLeFPhz6iR9NuDsbW39FRq8FGAV0XzgsFj?= =?Windows-1252?Q?K2bRv3GPVnSVLfjDpoSUjJ9L0vgGAjAqcX+7gom41IEjUFE5ZjVlcVwh?= =?Windows-1252?Q?tiVEL/xXkyTCkUVDKv0zTeT7hyUO/RzjBOVD6SVr1KIyYrKktM6NdtR5?= =?Windows-1252?Q?xd075fJi4tlohcYSPJf/7RkuDG+cN3N4DguFrgnnASQt3TSbewrjoHKT?= =?Windows-1252?Q?ygptT0sE88+3CimLuquev9Yk2O/nTfNox24nZAXmurL8bQeqOGDji+Mn?= =?Windows-1252?Q?Vz/pMDnrOskKe5loP7Z3rIsoUq/GIrUzCTemADC4z5ZdI5A0smXLU+lQ?= =?Windows-1252?Q?XbEmKjn/QhPGw3Ea793HqvuKMj1a/xdrpATj1/fMfbu0g1XJmm4aTJYe?= =?Windows-1252?Q?UJPqIrB8fG2n0Le74v4RF/8YECBm5r7P3/fDBAXBlAojpbmMWrbyS6Kv?= =?Windows-1252?Q?iwwk2m3KxhH4Cmeit9dMaeeG1C5c9W2Xd6oqk/MSWf9nSsB14yh42YDb?= =?Windows-1252?Q?5NTe8plOOAFwuOCktcrT3/YMhKPGTwCfSAPBf8zm+0QVQawKFuJxWUaw?= =?Windows-1252?Q?twDR8C5xr9mB9mQ+GZM5DEGihywvEhYLBBLj6wmk7GtVmS5m4fNGe5dD?= =?Windows-1252?Q?OIAwCN0qWqmxAM6pzn2nlntZbP0KDwBDwdXxXHG0F4bZcl8jeoide37w?= =?Windows-1252?Q?DxdYVsDCWcgyGMpb7I4QV9oja+SDomnM8gcJX6iJXYqg9f4Lrkl7meip?= =?Windows-1252?Q?7jYdSjIWSdbHo/nd1ppA9ZfpRpwkB/KDtSqBKmdvVGHdoecRFpsn9mV2?= =?Windows-1252?Q?USixvyX+vV1oj/MnvGxGb5A9/yQLsaX1k9gBQRD9wRN7lIKHG1QV3/B6?= =?Windows-1252?Q?O/0hqvmUah4ssXpiXjdbHm5LgpSbMOGmjrgTw6O6+9Ip6B0AsqAz4d81?= =?Windows-1252?Q?4lALMcECET7RIoHJDEzb9yAmxIlm+PEunFWlek9UTA3lihTirr9z0?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0740; 6:3C9XNGhySM8aP5Wg8odeIVfa3C4ULRPLh4E3ClbyhPqnh5wuhJguGqSaKWsYRebWbHz2kmbPk6RXyjmG8D8g0LA68F+Wnxi1XOVCPJs6FxnfE4aYFsoTq56VZaSjVR770/N3wslyPzHvO0xpUKiWeUPPcRhjM/NhvH0xH+PWXEoxCdP19BRhUa5eBThWfAhwRutxUZt2zD0nlb64+aLa8Q5vD3AFruqr1SSY37emR3DvTyYDQ7PAdXEjvB86+7g097MM9XPbhWwxGlGOY1Z0W4uVR5lZarB+V9CSL5wbfXpE14ML8QwQMn2V0j2LrDZZN1z5B9+hUGfn3ySTYih6fivNoLuS7geNVt/6cf7ZCTDoHeNw/SPGVlxQ9Pag0w5WiMbD3KeipLpEnSeXA1+erdAf/Z2q+HFsNPyotLo8WI9yIk57H2m9zSz4s0Vs/8sn; 5:odOt8NpUHSawdWlD6ayYez6WPIEIydGYEVQy5zeqBlIZtwT1TsaQUZcJcPpHSgDpTwfHOUMQXcNRuSsMWVCvWa13KbtZSjanfLQkAltJRSL0u/uDnsNjmGCWMfl8YERCEANRtOQeJCYR5h6EX1RMGXv1L+gO58dFCtEw+KK7f/rX0i4Bd+d3aReyOTg055HI; 24:OT7rFH0fWQKgvmnugKzMf1rufc4+C6UqmpOUJ28dtUNPSVb2wK99Saj4GFvXku0cYgoeK0LpuWt2lEZcUvdWK4bcDpQg1LLNqv64hXNYZjU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0740; 7:HUX6zX/h050GU0hPbsTo/WjBvZ87eKrf1fcG3aFZEXmkgo0TJ6rcWM4xK9iVWeb6ZghewovNT8WGQsj12Jq8/NoEldA/zVzD50F5IDsQA7xuxlDRsiC7jeTp1Mlyf1DUL+XtRY1J2bAJiciXtZ8iGF2Umz9RCdDKik/LFzzIf0nnUSajXHbqLiS1A3SrTECEPS0PlKtdlN2CdqmpyJRJjFLKHlS5y9FCX13/eYFpon66MnFmXADXn9aQY6NZvzf1OtWKa/MdKRNLzNH0yoSSDbHweEDm7MAn8UbylNdlfljwe7VeOWMOBeixUYZMGkgZQco98fGwPDgQVYxppH/5tWaAEu56+BMPHV6xT0umw2vlZnkS+O6/mfVhcmMQw031Zh4JNAHMK0INVWqUTRL1zZEl7sK7NORdhNa7hl4RXxxSGAlPoPmmP/r7H5r+XjJ9qrwPNaO9XUm6nV76L4KpHg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2017 12:00:25.6663 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0740 Subject: Re: [dpdk-dev] [PATCH v5 08/12] eal/pci: generalize args of PCI scan/match towards RTE device/driver 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: Fri, 06 Jan 2017 12:00:29 -0000 On Wednesday 04 January 2017 03:43 AM, Thomas Monjalon wrote: > 2016-12-26 18:54, Shreyansh Jain: >> PCI scan and match now work on rte_device/rte_driver rather than PCI >> specific objects. These functions can now be plugged to the generic >> bus callbacks for scanning and matching devices/drivers. > > These sentences looks weird :) > PCI functions must work with PCI objects, it's simpler. > However I agree to register PCI scan, match, init and remove functions > with the generic rte_bus. Then the rte_device object is casted into > rte_pci_device inside these functions. > Ok. I will rephrase.