udev: net_id - support predictable ifnames on virtio buses
authorTom Gundersen <teg@jklm.no>
Tue, 25 Aug 2015 12:12:19 +0000 (14:12 +0200)
committerTom Gundersen <teg@jklm.no>
Wed, 2 Sep 2015 12:24:17 +0000 (14:24 +0200)
commit54683f0f9b97a8f88aaf4fbb45b4d729057b101c
tree9b8bf63b5c1e153fb0099c691511f655a1ee361b
parentfc94c3260549c12892461be031c4b9dc122ca1ef
udev: net_id - support predictable ifnames on virtio buses

Virtio buses are undeterministically enumerated, so we cannot use them as a basis
for deterministic naming (see bf81e792f3c0). However, we are guaranteed that there
is only ever one virtio bus for every parent device, so we can simply skip over
the virtio buses when naming the devices.
src/udev/udev-builtin-net_id.c