Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2009 16:52:19 +0700 (ICT)
From:      Olivier Nicole <on@cs.ait.ac.th>
To:        yonyossef.lists@gmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: howto determine network device unit number? device.hints?
Message-ID:  <200901150952.n0F9qJi8066378@banyan.cs.ait.ac.th>
In-Reply-To: <001601c976f5$c015f7a0$220f000a@mtl.com> (yonyossef.lists@gmail.com)
References:  <20def4870901140009y1f007108y92797d5f79ffac08@mail.gmail.com>	<496E11B7.3010608@sepehrs.com>	<000b01c9768e$745aa160$220f000a@mtl.com>	<496EF30E.4010304@sepehrs.com> <000c01c976ec$87e040b0$220f000a@mtl.com> <496F012A.2040807@sepehrs.com> <001601c976f5$c015f7a0$220f000a@mtl.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Sorry to jump in but...

> Problem is, this unit number is not constant and changing arbitrarily every
> time I reload the driver (card A unit number=0 & card B un=1 or the other
> way around).

Since I have been using FreeBSD, the NIC had always been given the
same unit number (that is, unless I play and swap the hardware inside
the machine).

And that is the normal behaviour. Of course at each boot the interface
em0 remains interface em0 and ithe interface em1 remains interface
em1, else it would be a headache.

> Plus, I still don't understand why the unit number should change at all,
> instead of being determined according to the card PCI location or some other
> constant.

Not only it should not change, but you are the first person I ever see
mentioning that it change at each boot.

Bests,

Olivier



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