From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: Re: [PATCH 3/7] eal: move virtual device probing into a bus Date: Wed, 15 Feb 2017 15:13:40 +0100 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=UTF-8 Cc: dev To: Shreyansh Jain Return-path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id B0D34201 for ; Wed, 15 Feb 2017 15:13:41 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id c85so8436883wmi.1 for ; Wed, 15 Feb 2017 06:13:41 -0800 (PST) In-Reply-To: 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 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.