[dpdk-dev] [PATCH 3/7] eal: move virtual device probing into a bus

Jan Blunck jblunck at infradead.org
Wed Feb 15 15:13:40 CET 2017


On Wed, Feb 15, 2017 at 3:11 PM, Shreyansh Jain <shreyansh.jain at nxp.com> 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.


More information about the dev mailing list