From owner-freebsd-questions@FreeBSD.ORG Sun Nov 16 12:13:46 2008 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 C37B4106564A for ; Sun, 16 Nov 2008 12:13:46 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA05.emeryville.ca.mail.comcast.net (qmta05.emeryville.ca.mail.comcast.net [76.96.30.48]) by mx1.freebsd.org (Postfix) with ESMTP id A86E18FC14 for ; Sun, 16 Nov 2008 12:13:46 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA10.emeryville.ca.mail.comcast.net ([76.96.30.28]) by QMTA05.emeryville.ca.mail.comcast.net with comcast id foBU1a0060cQ2SLA5oDmJU; Sun, 16 Nov 2008 12:13:46 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA10.emeryville.ca.mail.comcast.net with comcast id foDl1a0022P6wsM8WoDlBR; Sun, 16 Nov 2008 12:13:46 +0000 X-Authority-Analysis: v=1.0 c=1 a=6DhFfMlRuDsA:10 a=26nLF3QrrG0A:10 a=QycZ5dHgAAAA:8 a=NOCtGtdb3hBXjMRsbZ8A:9 a=7Kk88k79HDH06MiNl0kA:7 a=8qCjTKgiMswSVmAji9Pt8MgW7zQA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 309E433C36; Sun, 16 Nov 2008 04:13:45 -0800 (PST) Date: Sun, 16 Nov 2008 04:13:45 -0800 From: Jeremy Chadwick To: Yony Yossef Message-ID: <20081116121345.GA952@icarus.home.lan> References: <20def4870811160403i67f9e8d6i1a52e93d1b68c5ad@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20def4870811160403i67f9e8d6i1a52e93d1b68c5ad@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-net@freebsd.org, Yehonatan Yossef , freebsd-questions@freebsd.org, liranl@mellanox.co.il Subject: Re: HW VLAN Filtering on FreeBSD 6.3 + 7.0 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: Sun, 16 Nov 2008 12:13:46 -0000 On Sun, Nov 16, 2008 at 02:03:54PM +0200, Yony Yossef wrote: > I would like to enable my NIC HW VLAN filtering, is there any way for my > driver to access the OS vlan table? (something like vlan_group_get_device on > linux) > > I understood from previous investigation that on FreeBSD 6.3 and 7.0 there's > no ioctl informing the driver of vlan addition/removal. Is that correct? Man pages to check out: vlan(4) and ifconfig(8). I'm pretty sure the vlan tagging feature is per-driver. Also, the vlan(4) list of supported drivers is out of date (for example, em(4) is missing), so be sure to check the man page of your NIC driver. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |