Skip to contentSkip to conversation

ok, which wise guy did this?

DISCUSSION jamal 3 participants 3 messages Jan 22, 2003

Subsystems (2)
lore
Share & tools
lore

jamal

author
#0 lore raw

I just booted my spanking new P4 HT PC last night using 2.5.58 and to my dissapointment the enumeration of the ethx devices is reversed. I have 5 ethernet ports on this; eth0-4 on 2.4.x are now listed as eth4-0. This is rude.
I immediately pointed a finger at monsieur J Garzik (thinking ethernet, PCI enumeration hmm) but he has denied any responsibility ;-> ;-> He thinks it may be the sysfs people.
Can anyone give justification for this? Regardless of justification can we have some form of backward compatibility flag?

cheers,
jamal

#1 lore raw
Quoted 1 line · jamal

Can anyone give justification for this?

different bioses enumerate devices differently?

Quoted 2 lines

Regardless of justification can we have some form of backward compatibility flag?

can you check if the bios is enumerating the devices the same way the kernel presents them?

--cw

#2 lore raw
In reply to jamal
Quoted 4 lines · jamal

I just booted my spanking new P4 HT PC last night using 2.5.58 and to my dissapointment the enumeration of the ethx devices is reversed. I have 5 ethernet ports on this; eth0-4 on 2.4.x are now listed as eth4-0. This is rude.

If you depend on the order then you must explicitly name the devices like you want. I've done something like this in the past.

ip link set dev eth0 name interface-1
ip link set dev eth1 name interface-2

I guess you could use a temp name and keep the eth[0-4] naming if you prefer.

Pádraig.