From owner-freebsd-questions@FreeBSD.ORG Wed Jan 14 08:09:45 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DBEC1065673; Wed, 14 Jan 2009 08:09:45 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.185]) by mx1.freebsd.org (Postfix) with ESMTP id D687A8FC13; Wed, 14 Jan 2009 08:09:44 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so467074rne.12 for ; Wed, 14 Jan 2009 00:09:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type:content-transfer-encoding :content-disposition; bh=/ic+S2d/kcl4K05WCTpx6gzQLUJM5a3PfLtgN2khRL4=; b=nZAcTpGYX3nMI9iuGaOA6KoEcOZJEuJaCDA0VEdmLynxbgMfkjpr/hY477/ufFyPII h6uhmtiaW9a63qbntSJaKKVmRoIZLWxgDghe0P/wXEOW3ESCNdAdaZRGPFNEe0dJG8Ij agr0PxXnJSMvre4xhsIGMwViNtjJBv1fOtdf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=qELCR3ttjwABDI1YhZ3nWr0Dqf90Kfwiyy5rDDToCe5NLivqZ/av/Mes/DuB9RfZRw UEeB3nJad+AdLnR46VP45htVQIARAQ0qqU6DMbI7cCZb4scPY03ZSaZK+l1S/zCdeoMU EBaIjXMhCw2RcrDhe9CxX9PpVW8JqZ8NH41Ls= Received: by 10.151.85.9 with SMTP id n9mr1405070ybl.150.1231920584041; Wed, 14 Jan 2009 00:09:44 -0800 (PST) Received: by 10.150.229.15 with HTTP; Wed, 14 Jan 2009 00:09:44 -0800 (PST) Message-ID: <20def4870901140009y1f007108y92797d5f79ffac08@mail.gmail.com> Date: Wed, 14 Jan 2009 10:09:44 +0200 From: "Yony Yossef" To: freebsd-net@freebsd.org, freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: eitans@mellanox.co.il, oleg@mellanox.co.il, liranl@mellanox.co.il Subject: howto determine network device unit number? device.hints? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2009 08:09:45 -0000 Hi, I would like to determine the unit number of my network cards, e.g. make the device on pci0:16 be assigned every time with unit number 0 and pci0:19 with unit number 1. Is it done by /boot/device.hints? if so, how? My cards are: 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 So I've tried: hint.mtnic.0.at="pci0:16" hint.mtnic.1.at="pci0:19" but it doesn't work. They keep switching arbitrarily. I'm using FreeBSD 7.0. Thanks Yony