From owner-freebsd-stable@FreeBSD.ORG Wed Jun 11 07:35:25 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B95B71065673 for ; Wed, 11 Jun 2008 07:35:25 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by mx1.freebsd.org (Postfix) with ESMTP id 8B24E8FC20 for ; Wed, 11 Jun 2008 07:35:25 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3591239rvf.43 for ; Wed, 11 Jun 2008 00:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=j5iGNU9J2VOCURcUab29KfFq5Rv7H7zjHUGxb8kl2KM=; b=pRL/88RrzejejCmgzNKxteM3u7pqbxdcreYYo2kYTG/AbwNxc0OH6zYgZwvYHhPFHb XGJutPS+uF7RQ3h6U1dpHEZ9/dk67eVzGo1pCNOfvsKeOZTH7PM0eL0efSyVjpaT5tWg zqOni0TmAb19hAq2nmsTxWo7YpzGnxS6WW3Wg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=ixJljoerE+Ocmxj5tJqY+we08zaiJSLe/67Hd1zsR6ASIRI+ZM8pfxaUd8Wg7wcERr quzuzfQ7jE1F+HNJQS6w6njbAhss3FOrXTSdB+Q8LO9tVXGS+9BbuuTrmJoUcon8PpvA PGxV4dfX5O7umivw4VW2K8zc+RFX9Kl2Mz5vY= Received: by 10.140.144.1 with SMTP id r1mr3631680rvd.199.1213169725142; Wed, 11 Jun 2008 00:35:25 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id b8sm18085938rvf.9.2008.06.11.00.35.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Jun 2008 00:35:24 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m5B7XFqJ004608 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Jun 2008 16:33:15 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m5B7XEGi004607; Wed, 11 Jun 2008 16:33:14 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 11 Jun 2008 16:33:14 +0900 From: Pyun YongHyeon To: Jack Vogel Message-ID: <20080611073313.GF3529@cdnetworks.co.kr> References: <2a41acea0806100951x1142edc6qc872d3810c2bd467@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2a41acea0806100951x1142edc6qc872d3810c2bd467@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: "freebsd-net@freebsd.org" , FreeBSD Current , FreeBSD Stable List Subject: Re: Vlan EVENT patch X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2008 07:35:25 -0000 On Tue, Jun 10, 2008 at 09:51:53AM -0700, Jack Vogel wrote: > This is a small patch that Sam came up with for me, it will allow > drivers to know > when a vlan attaches. > > It is transparent to any code that doesn't want to change, but this > will allow my > drivers to finally utilize the vlan hardware filter (something Linux has had for > ever but we lacked). > Just curious, is there any rule how to use that new capability? Because drivers will receive events whenever VLAN tags are added/removed they would know how to act for these events. If promiscuous mode is on for interface, driver should not filter any VLAN tagged frames, right? If users want to disable VLAN hardware filtering feature what is best way to perform this? Introducing a new flag like IFCAP_VLAN_HWFILT or add a new sysctl that control this feature? I guess VIA Rhine III also have VLAN hardware filtering capability so it would be even better if we have a way to share common part. > My test group has done some basic testing of this and it is working great. > But we wanted to give any vlan users a chance to see, ask questions, or > whatever before its committed. > > Jack -- Regards, Pyun YongHyeon