From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0084.outbound.protection.outlook.com [104.47.34.84]) by dpdk.org (Postfix) with ESMTP id 8B4C8201 for ; Wed, 15 Feb 2017 15:15:28 +0100 (CET) Received: from BN6PR03CA0062.namprd03.prod.outlook.com (10.173.137.24) by MWHPR03MB2957.namprd03.prod.outlook.com (10.175.136.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Wed, 15 Feb 2017 14:15:27 +0000 Received: from BL2FFO11FD010.protection.gbl (2a01:111:f400:7c09::115) by BN6PR03CA0062.outlook.office365.com (2603:10b6:404:4c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Wed, 15 Feb 2017 14:15:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; infradead.org; dkim=none (message not signed) header.d=none;infradead.org; 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 BL2FFO11FD010.mail.protection.outlook.com (10.173.161.16) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.904.16 via Frontend Transport; Wed, 15 Feb 2017 14:15:26 +0000 Received: from [10.232.14.39] ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v1FEFOfe013078; Wed, 15 Feb 2017 07:15:25 -0700 To: Jan Blunck References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> <1487152929-23627-4-git-send-email-jblunck@infradead.org> CC: dev From: Shreyansh Jain Message-ID: <63a008be-1386-9080-c846-e305eea44c38@nxp.com> Date: Wed, 15 Feb 2017 19:50:16 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131316417271365301; (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)(336005)(7916002)(39380400002)(39840400002)(39450400003)(39850400002)(39400400002)(39410400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(24454002)(189002)(199003)(377454003)(4001350100001)(105606002)(31686004)(106466001)(97736004)(23676002)(50986999)(54356999)(76176999)(33646002)(92566002)(83506001)(47776003)(31696002)(86362001)(65806001)(65956001)(389900002)(85426001)(68736007)(356003)(305945005)(110136004)(6246003)(38730400002)(8936002)(36756003)(626004)(65826007)(2906002)(64126003)(230700001)(6916009)(6666003)(2950100002)(189998001)(5660300001)(4326007)(104016004)(93886004)(81166006)(8676002)(81156014)(50466002)(53936002)(77096006)(229853002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2957; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD010; 1:5l+5rE85pu88V/uw0gH+WlXZRuinyJIwOgU77V3NdXUBp0WecXXwBgW1XAikcHvpP8eJh0BGEjZSLhFNBlKo2ln9VfH2WteHuW8GPKn0gbNvtgHpLbBJE4d85RhnJKtQvsJ1B6+SXxG1lZ3ac6YBnUKEdEq5HlT6GqCrIjJr9AGtcNE2NphmFevic6IxTo3oh2PVf5E32G6AfBeZeq9CRL76UxFqS3f7U9GqBkkym551mrgWqlSuNf9YVx9+fMvbhfL6S0ZdFdWokR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yf6lUGa7LfxEmcUnHqTUJE9WAjjTJFaiz48cdSfV+S6COk1YSWStKsn+inmIG46Q4lbN9yP3XvvZ8c2v1E5mbiOcNNVpCrAZImLCzLaRAywQTX8Ga15JfHw4/X4aT5b5AY8V3W0X4mc6wFR34buUQ8W7wVPNL/b+U4ns8mKm1M6TaBEjIhAyN2ovLH7KpesS74IoHIx1DTbx09HKRyobabUPAq0jsTUK2aLPRJjLC3eTXfcZ1rDpcHoRAIBdA== X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2957; 31:HGL2aaJ4gMzFKGv/5y6At6qnWNFxw7POWhfsJkkPd1noQE1etZDAvn/y53vgmwf/EQ7f/yBJs9IC/apwfyRSob0ATUx6FUuSE1DbOl5OrWZencPN4SU1NcTukmJdY+mR0v3rhBBjyhJBsYgtiQLUXGa0LucEJrEfdJwabudESLEZ5/inqPss0F09p1EBegCyeONFYPGHW0N/3s/Mp9cZIOLOwXKzrsmPnWIwbQD627YJ6huEPwTL6QW1YiryD5vnXZkqMz+GIizPpi20CH6tTA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13018025)(13024025)(13023025)(13017025)(13015025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123561025)(20161123559025)(20161123565025)(20161123563025); SRVR:MWHPR03MB2957; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2957; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2957; 4:CwEgBlLAGE2QCnKvRAvN/GPsrrxntnL9eoKfB/lP54Fkm0Zw+0X4mWkngxVD3JFUol/PA1Wd1eQ1ReUDGEK8zo24vqk4tOHDny6cIv0jnGsl5m/rgnAeH74zs40c68jhGJh2OQzBhYWXTkd7cj0o8+TedRd590qjK+Y1k2E7w2xd+coPomSD0ftr0kJinSYWw3D2hHlpEyG4gcEdYRd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x9aBcj1nt48TrnP6YkJF56xvnhBHFo4dGhRRGC4MONVuvf3zF5tqPDj3/+5CHz1aBXJ/0fIKNqgtgOJDPdUumkHdeyqLLwCtlt4O7sjqYr+CNH09MiCH6hTZ9LjkhLpIiMejAVvpnClQ56Wo69S4XJY0AA5PdE0DBAaHWSwc2kGCudEdT2VXtBu/LisitQ/1S3jkg0SwzXvndZKMT2fjVKsAqOaSfBqA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2017 14:15:26.8401 (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: MWHPR03MB2957 Subject: Re: [dpdk-dev] [PATCH 3/7] eal: move virtual device probing into a bus 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: Wed, 15 Feb 2017 14:15:29 -0000 On Wednesday 15 February 2017 07:43 PM, Jan Blunck wrote: > On Wed, Feb 15, 2017 at 3:11 PM, Shreyansh Jain wrote: >> On Wednesday 15 February 2017 03:32 PM, Jan Blunck wrote: >>> >> >>> + >>> +static struct rte_bus rte_vdev_bus = { >>> + .scan = vdev_scan, >>> + .probe = vdev_probe, >>> +}; >>> + >>> +RTE_REGISTER_BUS_LATE(virtual, rte_vdev_bus); >>> >> >> Does it matter if VDEV buses are registered before or after other >> buses? > > Yes, it does. Also see commit f4ce209a ("eal: postpone vdev initialization"). > >> Either way, the callbacks would be called in the order specified >> in EAL. > > They are called in order of registration. That is why this defers the > registration of the vdev bus. Agree - I realized the problem in my statement after I had sent the email.