How igb ports are numbered

Nomad Esst noname.esst at yahoo.com
Sat Nov 2 07:35:35 UTC 2013


Thanks for your help. I also found if_initname function which is used in igb_setup_interface function (in if_igb.c file). I've found out that the second argument of if_initname function is used to number ports, can I add an offset to it in order to change port numbering? Is it right?



On Thursday, October 31, 2013 10:57 PM, John Baldwin <jhb at freebsd.org> wrote:
 
On Tuesday, October 29, 2013 6:27:06 am Nomad Esst wrote:
>
>> How this job is done by driver? What should I do in order to change the 
>beginning number of ports numbering?
>
>devclasses (devclass_t) assign unit numbers by using a first-free algorithm 
>when a new device is added.  sys/kern/subr_bus.c is the place to dig for more 
>details on this.
>
>-- 
>John Baldwin
>
>
>
>


More information about the freebsd-drivers mailing list