netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* where is the ethernet device number determined?
@ 2016-05-12 20:05 Chris Friesen
  2016-05-12 20:19 ` Cong Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Friesen @ 2016-05-12 20:05 UTC (permalink / raw)
  To: netdev


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: where is the ethernet device number determined?
  2016-05-12 20:05 where is the ethernet device number determined? Chris Friesen
@ 2016-05-12 20:19 ` Cong Wang
  2016-05-12 20:27   ` Chris Friesen
  0 siblings, 1 reply; 3+ messages in thread
From: Cong Wang @ 2016-05-12 20:19 UTC (permalink / raw)
  To: Chris Friesen; +Cc: Linux Kernel Network Developers

On Thu, May 12, 2016 at 1:05 PM, Chris Friesen <cbf123@mail.usask.ca> wrote:
>
> 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()

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: where is the ethernet device number determined?
  2016-05-12 20:19 ` Cong Wang
@ 2016-05-12 20:27   ` Chris Friesen
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Friesen @ 2016-05-12 20:27 UTC (permalink / raw)
  To: Cong Wang; +Cc: Linux Kernel Network Developers

On 05/12/2016 02:19 PM, Cong Wang wrote:
> On Thu, May 12, 2016 at 1:05 PM, Chris Friesen <cbf123@mail.usask.ca> wrote:

>> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-12 20:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 20:05 where is the ethernet device number determined? Chris Friesen
2016-05-12 20:19 ` Cong Wang
2016-05-12 20:27   ` Chris Friesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).