From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0088.outbound.protection.outlook.com [104.47.38.88]) by dpdk.org (Postfix) with ESMTP id 6903AA2F for ; Wed, 15 Feb 2017 15:06:37 +0100 (CET) Received: from BLUPR0301CA0001.namprd03.prod.outlook.com (10.162.113.139) by BN6PR03MB2945.namprd03.prod.outlook.com (10.175.126.11) 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:06:36 +0000 Received: from BY2FFO11OLC001.protection.gbl (2a01:111:f400:7c0c::141) by BLUPR0301CA0001.outlook.office365.com (2a01:111:e400:5259::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13 via Frontend Transport; Wed, 15 Feb 2017 14:06:35 +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 BY2FFO11OLC001.mail.protection.outlook.com (10.1.15.185) 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:06:35 +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 v1FE6WxM005956; Wed, 15 Feb 2017 07:06:33 -0700 To: Jan Blunck , References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> <1487152929-23627-4-git-send-email-jblunck@infradead.org> From: Shreyansh Jain Message-ID: Date: Wed, 15 Feb 2017 19:41:25 +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: <1487152929-23627-4-git-send-email-jblunck@infradead.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131316411954218044; (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)(336005)(39450400003)(39860400002)(39840400002)(39400400002)(39410400002)(39380400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(189002)(24454002)(377454003)(199003)(77096006)(626004)(54356999)(76176999)(50986999)(6246003)(104016004)(83506001)(5660300001)(33646002)(68736007)(85426001)(105606002)(2950100002)(229853002)(81166006)(86362001)(31696002)(8676002)(81156014)(6666003)(92566002)(106466001)(65826007)(31686004)(8936002)(23746002)(97736004)(4001350100001)(230700001)(36756003)(53936002)(189998001)(389900002)(356003)(38730400002)(64126003)(50466002)(2906002)(305945005)(47776003)(65806001)(65956001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2945; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC001; 1:iQCCkZAvmXnD7SHwdxHrHOmBJUd2ne7u6MlL6/QVWKgsrS209OkCZrdknP81Nm3p8DKja243ci5SMNqBEC/H84P3N0e+KepyfIhL0u0+hNQFe0W6ngQ3rc/9zPGoVuVejtT7pf9mTheoBkMVrRyuPwvYRTS0O+wJVcFLN6XdDb3jsaVikkV8vv94lIgToZqO3Lk6lESkBuBRdaCv3+TuYHrqqm4JEvqrAv8PzKAOmXIbTsAziQ7wsMuIBy5CysKOrg5OXR8JClfUWkGxvSpy60PG/KffOVaDAP/cB09I0Ae0uaeo3WtoDb2ORB78aHRwPuDW3gXAfcekOZQc0YUCTqlQsJ+ycX++DeiLcXECduSYlU1JTJ75akY+dg3mNhgsJAxw+rauOLn7KnxZ/P1wva1+JU7yliaYpC0R3/nY8YgYBWnY5OcDCTvKnjqC5Joe1yYsWAYt30TtS7ptLSYSSNwEtSiE0GciePpPfk8f+eSGhcp0+2FS+Plfelz22AjvUJVGMXx68J8BogVexhVvu0blWC6rNJHZSa1SxI4srIM0cUXIAbiWk9q5Gl4qqQJp X-MS-Office365-Filtering-Correlation-Id: 7e3893ea-2ffa-4c3e-62f3-08d455abda2a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR03MB2945; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 3:ybQB4D6W4Dj9da54zionXUkFeV/7TE64NU2TLxgqPVcib6Qpkp4mu7mTWz6zSV73tJw/rvSwn7Ik72/LyHrBf/1rPnxxYAMVr5sNShmFsz8v3BfxbHAPRICx5+ykEkv4rGTV9vwi1WtUD14l2/tt1u5U4x2Nnv8SFAAngM9Fiombvons0nQcCjFffCnx19fDFg/IyYELem1PtuU4rrtI2QhOcwHdGTSO1RSRIJtXpSUpOK//BPKOdY5MwKCXjGxF8i6ITZkhBeGap7MSjueQLvlTFXyInQp6FsmsyXFsVA7sEwdPDzNMsOWdNlLt9/jeGTxY302JI8BPz0AlJodqBd7X9iD2Nab2o0bID2fnw7eXxhlQShcmdvEKNmvkfNqn; 25:vfDYfComBcBrJbjR+Ipwof8ixtuqy5wZPV6xic8CerI8dHwbQCWGg0mxeIXabtLz993j+twm7Koqd1nMdS1teTjeYyk+DvuqsJmjf3kjrSlC/w3m5OZG8XzPpcG8Th62FHoO+5c9smP0gVvqMlN0/PYzBf6q6mqoJYkQylaSkBisVr8Dvn6xbBVQWrYzg/i1ZwOhWQKibCj6yHZfwiHL+e3rF7OLyXIVOsSTryy/qAZLav+Sd4RZiCRAbvYwoqdhuZkN2Pm7j1XQ4LETf2GvWW+aoUd96EbtMA804dKw2cKmdhCGSJlMLbHNDMRhTbh0rw9lC3FUjnDEfx8+Vgzd9GdRHKdGOvK82OfDI0eU99AbLUV05csEjv0l1JDjlsn3aGhK6Qa0ktteLTv7cDqOyj8NSpbm7TNFVmUr4hbfCGy43akuaJvFBv4HsGx+BXuW/XgfiXTpkR/PY2cHcAKjUg== X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 31:4+nGL7plNeuw/+AD0nLhCTLwApdf/N5zVd7Gevjwbg3rd8EiIZnK9kS9SfCibhK2G7fDet3JIYLnEOm5/aLL44NaPQANrEBZh7ABEdzww9X07XWQ8Rd/4UyattLEhXDNoM+PoUM9hYKekIUWnV1pzzuKOZ0jLQdANyl14uPrnFbhkwP6K97hrH0kXblxmn0nKy39zTrcfXDAVpim9u+zpFwVMyvA0WSeRUjwbj/OHweMndNGYVXpngEVReVNG7j1+a9VuMlxSpwKUvAYjYYwFw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(8121501046)(13018025)(5005006)(13024025)(13023025)(13017025)(13015025)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123565025)(20161123559025)(20161123563025)(20161123561025); SRVR:BN6PR03MB2945; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2945; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 4:xM7qQXxhEcKay/1tGJsRsZghCVS1thejXTZCzf6kyzgXlOtW9PxQ49tWBTbfJ4loe4+4SJKYdK1ALnvpDF34OFA2O4jWx21j2VsZI1s8mK43wLMnblVeh21wVoJBeeTUJKZUAQosGNin76K5h8ZXjvRyIXk62qsbuGSzY1yxCEJbMuCnChIrgGU41EVbnrkpf0SjdLNR+2Yrjzf1UnUcEEItjKz7lXkehmdaSDheRaTnhGGD+r1wBq1bnPISCu0gGuyAoRjpp43b1xRmUDBzJ3AsUDKjie3KrZvL3H3tpwWLdpRVCYOauntmro2mAe6MTWjXDbEjVs5O/BIxbdR+u/GTkc243YaiaWdYoQa5F97acu1OcSAspfg30Bgk1MPYHLADFmTsx6WfUfPZP4PQMrtophsoGvWqQU0lIGJgAal95cnUch1uGMDyfxg6D8578+4Ih4NTzwx+YhnE28oWNLis0l9amyIeQpgaWDH+i+fXr9yzHhlK9DQJd15K5c1jWDMic3kxstBUcMHLItocxRT+gJOJVp+BAnB+A+4SJ8tva0UlkZ6HLmdhU86w+/qj2uMEYegFa66wJcoNAHrEHLz6tqSGVw8/65Z+qNiQ4QRN5N9uhxkgUQ5xUiL2EWmEGAYMjormKxzqWSozCHawXVPlNl9CYNIUmHqA58xbZHkve4J877V0XfY+PP8FDzKOshCrrmgfn/WvW98BeTpCuA== X-Forefront-PRVS: 021975AE46 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR03MB2945; 23:k50hZnjIKuQZMtn0nZDigOMKekrz72LgPR7BL?= =?Windows-1252?Q?51V9lVLDUARMfN6NKybpVQZpZpDKAZ3EHuzTKZcguoA3y4g7SkqnnS/4?= =?Windows-1252?Q?SqXV+2EjYwoR/5Ro4ehHDtFcf7+gYTWhal7/nmV7mJA/Z7MWDLGWwCzn?= =?Windows-1252?Q?j3LG1w+TRUOLAEQC5xsVT8dARQzfPtw3xEfpNmoZivNAplNvGApcUa0C?= =?Windows-1252?Q?CPMXe9zU2WiQBUWwPhK9Fqw2jlgYCSOgy54TKKGMNbzdov9l1MiMeYAZ?= =?Windows-1252?Q?55HsRoZSc1FYnzzSICCt99wG8qIbO878B9j8oSgMdmv47bA3jGkRpPUB?= =?Windows-1252?Q?Uh5Zwd7vEefpDMGXwX2Ez/+dEPqQF2ya4TLIe51FnpZ/Mnhoo0RvlvzN?= =?Windows-1252?Q?v2pSeKbdtxnI2YmKNbiIb07ZxcqVrV32+cBxXPRgQpdaiNgSSmz4bIkm?= =?Windows-1252?Q?Sd0c1Vma/XVqplK39rlU7foc+apSMdbGb/071QX0ZFMtsanYcfFftqwi?= =?Windows-1252?Q?q9rTcFvltnndJ+C0drVdlIVlwPG5FgmPJtbZwyIMG0IhhErq2KrWSxIZ?= =?Windows-1252?Q?EaXejcVjwp5psNrHpxVWCMeDziZzuXid/KHtfbBD9x2jhn4yc0rU2S+I?= =?Windows-1252?Q?W3tJWkw2pbzRTbvLN8gGeHlmesW2WOkCYkaMd4pdb7kYq75QCoDhVAGm?= =?Windows-1252?Q?MNgTZjBpGcToff3mQh5dEXPMUB9K6I8k0+8FSh+kUk0D2SSsAMG3xMX9?= =?Windows-1252?Q?u5DOQEmRt0yz/oGP/3xl8zc+9QIPH3RN9JFi3avYTpQtYtcKxATIbcNI?= =?Windows-1252?Q?SAXiZ63JFOiVUjqZLuhwtsvhRzyShdZufT3u0jkJQnxcYVDGc8kYGnOt?= =?Windows-1252?Q?182HTfK+laxhs000cw9HOmfEKwtub3wex+XwExX5MTfZPNtt6yvOAVvO?= =?Windows-1252?Q?WksJ0m3kngT4CKwYOTbn7iDm/m3lgpGajKXFGQ1+EUm9Jgr0faUDcF1p?= =?Windows-1252?Q?wEjmyyMqoF2ML2TUKQykQNzX5dcke0tp9Wq67qbZJtg8bxQSO0Ao/YIB?= =?Windows-1252?Q?wiUpbr2V8A+ZWuImudQfquYucmvSGKXKp/gjyCmonNMnCoZbK4rqDXv3?= =?Windows-1252?Q?KUKTsCvdEwozRD5dxBfr+1SLSNe/pm2HJE0Bx0VUgP5nOkgn93fYxTdT?= =?Windows-1252?Q?K2sr4md6hRnZ9B7wdpsxwG/vNHn2Dbizq3U+IBiMRvbX4nubcRqwFQK4?= =?Windows-1252?Q?3LS6z7jIM48Qmn6zCOiccRjDjCUaHKJ5LXrpdNEhauyrwy5oG9AnxIuj?= =?Windows-1252?Q?QGrUGUi25jtNIOjAfZSUDkn6VBurTxJ/Mc6WqBK+ZxFqJufb0c/C3cV0?= =?Windows-1252?Q?Npi9uxyHvYveQZ6C24e8pBX+Sboe2/y2ob0MWSPPdKZaiMP/0flXfzGX?= =?Windows-1252?Q?HvNTojqX6szY77z9yBcaS8Lmo9OzuPJCGqKUidOS+8PJcoE5C0NqhABU?= =?Windows-1252?Q?VxQNza+VSdzHIqOMuTtgh9TYtn3z1rJieGlEZOXRs7Fu7m/AOc5RQSp0?= =?Windows-1252?Q?bB/Fwk805EaKhD2EZL8O8upGM9ikwjwymecOehcvbNdnidWP7hGCMYEL?= =?Windows-1252?B?QT09?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 6:Np1LyZZklpVFnUpCbQiSwrjLAHeg16PuCI1jQBwEjglfdS4ORqg1vD3MTYxKHtEw1PuToHPznOg2IPRiiBtUsW5o/WIh8TpkLtpf8DYCCug8lw9xb4SkYNenlRnYt/cO+hImAPDUuMxUmArb3lenheJuGjAaC+PMz2Hd89ChRIROJ5bFylRdCKIL7scdELnSYH+3g8PbErTz7Bd4ntLPmgUJrszknfQDVOH6l8K6LGL0C1HZHwILR3Z/aw86KLtQpgl8tzQf3bBP5b/KgdA98PydifpjIjjPz0QUUCMD6sViLQrm+3bdlaM2AXIzOam1tNQrxg8Db1i4lKYP6gHsnw6JZ0ha5faz9760dvxXjKdHSZbah1G17cUfZ25ppNf3EEb3iqbros1kgxkfFL+0UFwqV1X9SdFh5xDFORUBLGo=; 5:zEkltkHkdfUfTlD2Uf/0fYSZF5rup9xggaPyc5GB9ux9OglnXH/a6Y+1De2Q9GEBNaTd8nhJQ0+w605rFXEAoPsrxT8u3c+ngnBJN7Gje/JxmCzP+0rZSfD2XVGBd8sUsiN+BGScy945iwMvMQhJQ+671lFHqx7NaUiiKo6sSu+HxonupgsSzlAFzPKg5uLR; 24:gLRQ1aBgCsi00RkIaFNXr+9UAJNb538/oTHbcObAwgrl3UK07WLafQbj2FnxWSZhXcA1vyalbTzpcBdRdErIWkh0ZnATgEJtqNhZWX/e/jg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2945; 7:+N2JgeSpwzHUFJkYgUnZAy0U/XpWO8NgFhWiCjDJ/fCMUpsCzcFIEeK3TBHr93aDFy41zP1dviZRkJpnmW2LPPTCbOB+HgSmkWlD3nVLRst+is5qvuPJzlYjn36y9taH04dxXlvrHlOtCvgmCl+O0+meFchK86svZB4n/gfdlbmKzFsm3Q8OvqkJ6OsoOan19+rUcqYFGeEn3fucyBmJPoJT/ZZtMci8j3+yMYpZai+NzveWEeot7bIUaAHxJJr14KOeqc0qceFiJaX1J+niJw9Px9I65wSdZj5wTlnWoz6+dmnxG/+RCpJXqdpO0EwyzZV/VEZI3sIY/zBY5tL4tFZv/rcjKpftgMgXRKH02j3ndhWKlUiTdrSoDi54gQuFQjOMQ1W/vJE0/7+k6ov7glHsNn19T61P474ankJ+HSlQxnWt1dVu6jZ/t8JURHJ3+i+P4/L02YPcRVcVClP8soX7Ta/l5iDQeDfFkCf6GZRAaBQ9ncSb7WgHWrZ7xCwlxHIeYYW2l5psTUwtOoCDKg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2017 14:06:35.2190 (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: BN6PR03MB2945 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:06:37 -0000 On Wednesday 15 February 2017 03:32 PM, Jan Blunck wrote: > This is a refactoring of the virtual device probing which moves into into > a proper bus structure. > > Signed-off-by: Jan Blunck > --- > lib/librte_eal/common/eal_common_dev.c | 22 ----------------- > lib/librte_eal/common/eal_common_vdev.c | 44 +++++++++++++++++++++++++++++++++ > 2 files changed, 44 insertions(+), 22 deletions(-) > [...] > > diff --git a/lib/librte_eal/common/eal_common_vdev.c b/lib/librte_eal/common/eal_common_vdev.c > index 7d6e54f..523a3d6 100644 > --- a/lib/librte_eal/common/eal_common_vdev.c > +++ b/lib/librte_eal/common/eal_common_vdev.c > @@ -37,8 +37,10 @@ > #include > #include > [...] > + > +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? Either way, the callbacks would be called in the order specified in EAL.