From owner-freebsd-current@FreeBSD.ORG Sat Aug 26 04:52:18 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2867216A4DA; Sat, 26 Aug 2006 04:52:18 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B48143D46; Sat, 26 Aug 2006 04:52:17 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 1EAF646C3B; Sat, 26 Aug 2006 00:52:17 -0400 (EDT) Date: Sat, 26 Aug 2006 05:52:17 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Gleb Smirnoff In-Reply-To: <20060825145632.GY76666@cell.sick.ru> Message-ID: <20060826055028.A43127@fledge.watson.org> References: <20060825101140.GV76666@FreeBSD.org> <200608251031.34081.jhb@freebsd.org> <20060825145632.GY76666@cell.sick.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Ian FREISLICH , freebsd-current@FreeBSD.org, Andrew Thompson , John Baldwin Subject: Re: 802.1Q vlan performance. [PATCH] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Aug 2006 04:52:18 -0000 On Fri, 25 Aug 2006, Gleb Smirnoff wrote: > On Fri, Aug 25, 2006 at 10:31:33AM -0400, John Baldwin wrote: > J> > I> +++ /usr/src/sys/conf/NOTES 25 Aug 2006 10:03:18 -0000 > J> > I> @@ -646,6 +646,7 @@ > J> > I> # > J> > I> device ether #Generic Ethernet > J> > I> device vlan #VLAN support (needs miibus) > J> > I> +options VLAN_ARRAY #Lookup table for trunk interface > J> > I> device wlan #802.11 support > J> > I> device wlan_wep #802.11 WEP support > J> > I> device wlan_ccmp #802.11 CCMP support > J> > > J> > I'd prefer not to put it into NOTES. When enabled, less code will > J> > be covered by LINT. > J> > J> Bah, GENERIC will cover it then. All options should be in NOTES. If > J> an option removes code and it's enabled in GENERIC, then you should put > J> it in NOTES but comment it out. > > But "device vlan" isn't in GENERIC. Only for historical reasons -- at the recent devsummit, I argued that if_vlan should, in fact, be part of our generic ethernet support code, as vlans have become an expected ethernet link layer feature. I also argued that tigher integration of vlan support into ethernet would help avoid some of the trickier issues in keeping vlan interfaces synchronized to the set of ethernet interfaces, as well as avoiding the mbuf tag overhead, etc. I have some hope of looking into this once if_startmbuf is off the ground. Robert N M Watson Computer Laboratory University of Cambridge