[systemd-devel] udev interface naming for SR-IOV VFs

Ido Barkan ibarkan at redhat.com
Tue Apr 14 03:11:13 PDT 2015


Hi all,

I am VDSM developer in the Ovirt project.

We are implementing support for SR-IOV network cards. Afer the changing of
the number of VFs on the card and programmatically querying for all links
(we use libnl for this) we observe that *during the iteration* over the links
some of them were renamed by udev and still were not. Meanning, some of them 
are called 'ethN' and some are called 'enp2sNf2' (where N is an arbitrary
number). Also, there are times that not all of the devices are returned from
libnl.
After a _while_ everything stabilizes (# of interfaces and names).

My questions:
1. Is this what you would expect from udev? Meaning, this is just async behavior?
2. Is there a way to _know_ programmticaly that everything was probed and renamed?
   Not a heuristic?

Thanks,
Ido



More information about the systemd-devel mailing list