Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2009 13:01:43 +0200
From:      "Yony Yossef" <yonyossef.lists@gmail.com>
To:        <freebsd-net@freebsd.org>, <freebsd-questions@freebsd.org>
Cc:        Eitan Shefi <eitans@mellanox.co.il>, Oleg Kats <oleg@mellanox.co.il>, Liran Liss <liranl@mellanox.co.il>
Subject:   Using device.hints to determine network device unit number
Message-ID:  <000501c9756e$9563d550$39ed1aac@mtl.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi, 
 
I would like to determine the unit number of my network cards, make the
device on pci0:16 appear always as mtnic0 and pci0:9 appear always as
mtnic1.
 
# pciconf -l | grep mtnic
mtnic0@pci0:19:0:0:     class=0x020000 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00
mtnic1@pci0:16:0:0:     class=0x020000 card=0x001715b3 chip=0x636815b3
rev=0xa0 hdr=0x00
 
Is it done by /boot/device.hints?
if so, how? I've tried:
 
hint.mtnic.0.at="pci0:16"
hint.mtnic.1.at="pci0:19"
 
but it doesn't work. They keep switching upon reboot.
I'm using FreeBSD 7.0.
 
Thanks
Yony
 



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000501c9756e$9563d550$39ed1aac>