From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH 3/7] eal: move virtual device probing into a bus Date: Wed, 15 Feb 2017 19:41:25 +0530 Message-ID: References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> <1487152929-23627-4-git-send-email-jblunck@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit To: Jan Blunck , 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) In-Reply-To: <1487152929-23627-4-git-send-email-jblunck@infradead.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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.