kayws426 / embox

Automatically exported from code.google.com/p/embox
0 stars 1 forks source link

PCI devices are enumerated in reversed order #592

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In qemu I provide a series of interfaces to the virtual machine:
-net nic,vlan=1
-net nic,vlan=2
-net nic,vlan=3
...

I expect this interfaces to be enumerated in this order: vlan1 -> eth0, vlan2 
-> eth1, and so on. But the names are assigned in wrong order;
vlan3 -> eth0, vlan2 -> eth1, vlan3 -> eth2.

The culprit is a PCI subsystem support: new devices are added at the head of 
the list, so iterating this list produces reversed order.

Original issue reported on code.google.com by vladisla...@gmail.com on 4 Apr 2013 at 12:32

GoogleCodeExporter commented 9 years ago

Original comment by vladisla...@gmail.com on 4 Apr 2013 at 12:55

GoogleCodeExporter commented 9 years ago

Original comment by ki.stfu on 4 Apr 2013 at 4:11

GoogleCodeExporter commented 9 years ago

Original comment by Anton.Bo...@gmail.com on 7 May 2013 at 12:32

GoogleCodeExporter commented 9 years ago
Fixed by r9701

Original comment by alexkalmuk@gmail.com on 7 May 2013 at 1:52

GoogleCodeExporter commented 9 years ago
ok

Original comment by vladisla...@gmail.com on 8 May 2013 at 10:03