Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2013 00:35:27 -0700 (PDT)
From:      Nomad Esst <noname.esst@yahoo.com>
To:        John Baldwin <jhb@freebsd.org>, "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org>
Subject:   Re: How igb ports are numbered
Message-ID:  <1383377727.1227.YahooMailNeo@web162702.mail.bf1.yahoo.com>
In-Reply-To: <201310311433.36740.jhb@freebsd.org>
References:  <1383042426.69884.YahooMailNeo@web162706.mail.bf1.yahoo.com> <201310311433.36740.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for your help. I also found=A0if_initname function which is used in =
igb_setup_interface function (in if_igb.c file). I've found out that the se=
cond 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?=0A=0A=0A=0AOn=
 Thursday, October 31, 2013 10:57 PM, John Baldwin <jhb@freebsd.org> wrote:=
=0A =0AOn Tuesday, October 29, 2013 6:27:06 am Nomad Esst wrote:=0A>=0A>> H=
ow this job is done by driver? What should I do in order to change the =0A>=
beginning number of ports numbering?=0A>=0A>devclasses (devclass_t) assign =
unit numbers by using a first-free algorithm =0A>when a new device is added=
.=A0 sys/kern/subr_bus.c is the place to dig for more =0A>details on this.=
=0A>=0A>-- =0A>John Baldwin=0A>=0A>=0A>=0A>


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1383377727.1227.YahooMailNeo>