Comment 13 for bug 1284043

Revision history for this message
Dave (dlgawley) wrote :

From the looks of it, biosdevname gets the name right when it's called. I'll admit I haven't taken the time to get the source let alone read it, however, it seems to be following this strategy:

1.) rename "ethXX" devices to a "renameYY" temporary name
2.) then rename "renameYY" temporary name to the `biosdevname` name.

The problem that I'm seeing is that step 2 doesn't always happen nor is the failure of it not happening consistant.

ie here's the results of "lshw-businfo -C network" from two identical pieces of hardware with fresh installs of "Ubuntu 14.04 beta2" with a full "apt-get update && apt-get dist-upgrade" applied this morning:

Host_A# lshw -businfo -C network
Bus info Device Class Description
===================================================
pci@0000:04:00.0 em1 network NX3031 Multifunction 1/10-Gigabit Server Adapter
pci@0000:04:00.1 em2 network NX3031 Multifunction 1/10-Gigabit Server Adapter
pci@0000:04:00.2 rename6 network NX3031 Multifunction 1/10-Gigabit Server Adapter
pci@0000:04:00.3 em3 network NX3031 Multifunction 1/10-Gigabit Server Adapter
pci@0000:44:00.0 p8p1 network OneConnect 10Gb NIC (be3)
pci@0000:44:00.1 p8p2 network OneConnect 10Gb NIC (be3)
pci@0000:47:00.0 p7p1 network MT27500 Family [ConnectX-3]
Bost_A#

Host_B# lshw -businfo -C network
Bus info Device Class Description
===================================================
pci@0000:04:00.0 em1 network NX3031 Multifunction 1/10-Gigabit Server
pci@0000:04:00.1 rename7 network NX3031 Multifunction 1/10-Gigabit Server
pci@0000:04:00.2 rename8 network NX3031 Multifunction 1/10-Gigabit Server
pci@0000:04:00.3 em2 network NX3031 Multifunction 1/10-Gigabit Server
pci@0000:44:00.0 p8p1 network OneConnect 10Gb NIC (be3)
pci@0000:44:00.1 p8p2 network OneConnect 10Gb NIC (be3)
pci@0000:47:00.0 p7p1 network MT27500 Family [ConnectX-3]
Host_B#

Note the resulting name differences in the embedded Nic device (NX3031 Multifunction 1/10-Gigabit Server)

There is a second problem that "lshw" is not seeing the second port of the MT27500 Family [ConnectX-3] dual port Mellanox CS314A card. (don't know if it's related or not).