From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=RQtFZzgFn0hCv2SvpB/xPVg74Kz0k+f63B+9hhSdvdQ=; b=CHJxD/4xrE/WVKP8Apf//TkgRc4g1iBJsW0GVQGo+aGoQhHc3a51XGPXDTbqNuT4Jc dcHAXVIoZExBc7lyXzWClMA7ZX4J+KzWaRPPc0TPZAjDh+GyUyTX3F9EFxmC4MhyDklB dE5CIGd8Z7AUwFyJiUNMT2XGc6BWC3M81LoaWCVgUIGWlTDimOAcWDq5aGmwtFqq4+Hx qID3k6pynk2e+1v0jmCk1tJLpRbodfAg13qXhUYzNmsvyCU10POBcCwk0ULfkwrNF+6R jutnLlNuOvlxiwn6Ns7u9exCUsRwJym89AdYAvi0fKSBIexdxSsD/c2OkZQmuV4xeM2n 28kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=RQtFZzgFn0hCv2SvpB/xPVg74Kz0k+f63B+9hhSdvdQ=; b=qbTkZ24ugzbbwzQWk2Lo9Vm8b9Afx8IddLQBFPU9bAn2Eta5BmA+vC0bru3aO6rJ0b 1qPz7OwFEA71v7Fh8dD3tfmeemvrY60KklznBJYsTaUZA3m1PmRGmuCJR43yKGZp9BqB VRjTEEdQMpmgliSaICA/KfU1oCRtbFllw+1zSIdXb/w8qCtCl5EUFmKB/EqSCLtrRY5j 4YIkmmuG2LMAMq6cZ3ea7Z40wfsDwKVD5rXjGiQHSlwL6b2k1h40MsHtrozBT3xsrAKe IxbH0madC32r6wmuryylEwAMdx8IcN8+aImSm8vbbnUXK9YfVvTh8TkVW1R8rFCEenNB evgA== X-Gm-Message-State: AMke39m+ASCwqBnnf3vCY8OHKx3Y1TUibD91g0wpUJwoUAnqXoxizG86gVUMtWGgk0t9QLxrPLTLvM8ebkIXhg== X-Received: by 10.28.135.82 with SMTP id j79mr7966365wmd.19.1487168021507; Wed, 15 Feb 2017 06:13:41 -0800 (PST) MIME-Version: 1.0 Sender: jblunck@gmail.com Received: by 10.28.211.20 with HTTP; Wed, 15 Feb 2017 06:13:40 -0800 (PST) In-Reply-To: References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> <1487152929-23627-4-git-send-email-jblunck@infradead.org> From: Jan Blunck Date: Wed, 15 Feb 2017 15:13:40 +0100 X-Google-Sender-Auth: xvgMVuf9X2BiyVk_86XS34lwO8U Message-ID: To: Shreyansh Jain Cc: dev Content-Type: text/plain; charset=UTF-8 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:13:41 -0000 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.