Skip to contentSkip to conversation

where is the ethernet device number determined?

DISCUSSION Chris Friesen 2 participants 3 messages May 12, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I hope this is a simple question...with legacy naming ethernet devices are named ethX. Where is that X determined? I've been looking in alloc_netdev_mqs() and friends, but haven't found it yet.

Thanks,
Chris

#1 lore raw
Quoted 6 lines · Chris Friesen

Hi,

I hope this is a simple question...with legacy naming ethernet devices are named ethX. Where is that X determined? I've been looking in alloc_netdev_mqs() and friends, but haven't found it yet.

__dev_alloc_name()

#2 lore raw
Quoted 7 lines · Cong Wang
Quoted 3 lines · Chris Friesen

I hope this is a simple question...with legacy naming ethernet devices are named ethX. Where is that X determined? I've been looking in alloc_netdev_mqs() and friends, but haven't found it yet.

__dev_alloc_name()

Much appreciated.

Chris