[PATCH v2] bus/vmbus: add device_order field to rte_vmbus_dev
Long Li
longli at microsoft.com
Sat Jul 6 02:21:32 CEST 2024
Hi Vladimir,
Is there another way that you can determine the device probe order from your application? (like going through the /sys/class/uio devices)
Long
From: Vladimir Ratnikov <vratnikov at netgate.com>
Sent: Tuesday, June 25, 2024 4:50 AM
To: Stephen Hemminger <stephen at networkplumber.org>
Cc: Long Li <longli at microsoft.com>; dev at dpdk.org
Subject: Re: [PATCH v2] bus/vmbus: add device_order field to rte_vmbus_dev
You don't often get email from vratnikov at netgate.com<mailto:vratnikov at netgate.com>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Thanks for review!
Regarding to
The patch only has the device_order field, but it is set but not used anywhere in the DPDK.
Unfortunately, It's not for DPDK usage, it's for DPDK based applications.
After some time of testing, if nothing's changed in the host OS(no new devices, no removed devices) - the device list is always the same with the same order.
On Tue, Jun 25, 2024 at 2:02 AM Stephen Hemminger <stephen at networkplumber.org<mailto:stephen at networkplumber.org>> wrote:
On Mon, 24 Jun 2024 11:15:21 +0000
Vladimir Ratnikov <vratnikov at netgate.com<mailto:vratnikov at netgate.com>> wrote:
> Field can be used to have static interface naming
> in DPDK based applications instead of uuid.
> RTE_FOREACH_DEV won't return the correct order of
> such devices due to vmbus_ignore_device in case of
> blocklisting/allowlisting. So device_order field
> will be helpful in that case.
>
> Signed-off-by: Vladimir Ratnikov <vratnikov at netgate.com<mailto:vratnikov at netgate.com>>
> ---
Not sure the order of device discovery is predictable.
The order of devices on vmbus is when they were reported by the host OS.
That is why Linux driver use other ways to have persistent naming.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20240706/654bda82/attachment.htm>
More information about the dev
mailing list