From owner-freebsd-net@FreeBSD.ORG Sun Nov 16 12:27:37 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C31801065695 for ; Sun, 16 Nov 2008 12:27:37 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.191]) by mx1.freebsd.org (Postfix) with ESMTP id 74E428FC14 for ; Sun, 16 Nov 2008 12:27:37 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so2036602rne.12 for ; Sun, 16 Nov 2008 04:27:36 -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:in-reply-to:mime-version:content-type:references; bh=DHsNYSSW94+rvGVu0aozJMsfu3qLmukGIRMd8DfqmdY=; b=Id964GyagyoYkdS7y7mmK8MnHn5hrvne3ujesH2kRxJnjVFMtkFOWtlKZ/D8TMVr5N NJfHQ0FTVSrOr4O4Zr4TaA8GppgPy9RYef1x5IAmCpUOfypvnRuHRdvdgC4G6f6diSEd DeR9FfQG7S++yEB0F2hBukIkFcqsqSnxkXPiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=GIetj1LPGHCA6V3gZ2ctnu8fhZXl9u2xkBhQwYKLEOy8BQfb5r+cpEpwuypzgFvI45 oFUZuGTWuZnmJigKoNmfk5wf7tZahDUwQCii3IesQ0jh+jFp2xvqezjkq++HLOJ/1b/r QDB+wPBfPjcJAH3dDGdjDKO9TfHk9I4l8mdHE= Received: by 10.150.202.8 with SMTP id z8mr5765277ybf.37.1226838456443; Sun, 16 Nov 2008 04:27:36 -0800 (PST) Received: by 10.150.124.5 with HTTP; Sun, 16 Nov 2008 04:27:36 -0800 (PST) Message-ID: <20def4870811160427k1a718a8es9287220c03f71f26@mail.gmail.com> Date: Sun, 16 Nov 2008 14:27:36 +0200 From: "Yony Yossef" To: "Jeremy Chadwick" In-Reply-To: <20081116121345.GA952@icarus.home.lan> MIME-Version: 1.0 References: <20def4870811160403i67f9e8d6i1a52e93d1b68c5ad@mail.gmail.com> <20081116121345.GA952@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2008 12:27:38 -0000 > > > 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. Sorry, i explained myself pretty bad. I'm working on an Ethernet driver for FreeBSD. The VLAN hw tagging is already working properly, but my nic is capable of holding a vlan table on hw, filtering vlans on it's own. I need to find a way to update that hw table. one way is to recieve a ioctl from the OS of it's vlan table event (add, remove). I can't find such ioctl. second is to have a direct access from the driver to the OS vlan table. I'm not familiar with the interface or if it's possible at all, and that is my actual question. Thanks Yony