From owner-freebsd-arch@FreeBSD.ORG Mon Jul 10 20:27:15 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B626616A4E1 for ; Mon, 10 Jul 2006 20:27:15 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from grunt13.ihug.co.nz (grunt13.ihug.co.nz [203.109.254.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CAD343D49 for ; Mon, 10 Jul 2006 20:27:15 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from 203-109-251-39.static.bliink.ihug.co.nz (heff.fud.org.nz) [203.109.251.39] by grunt13.ihug.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1G02LZ-0000VF-00; Tue, 11 Jul 2006 08:27:13 +1200 Received: by heff.fud.org.nz (Postfix, from userid 1001) id C3A8A1CC22; Tue, 11 Jul 2006 08:27:14 +1200 (NZST) Date: Tue, 11 Jul 2006 08:27:14 +1200 From: Andrew Thompson To: Brooks Davis Message-ID: <20060710202714.GC16054@heff.fud.org.nz> References: <44B15511.206@errno.com> <44B21551.5050002@freebsd.org> <20060710160441.GB31026@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060710160441.GB31026@odin.ac.hmc.edu> User-Agent: Mutt/1.5.11 Cc: Andre Oppermann , freebsd-arch@freebsd.org Subject: Re: vlans and cloning X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jul 2006 20:27:15 -0000 On Mon, Jul 10, 2006 at 09:04:41AM -0700, Brooks Davis wrote: > On Mon, Jul 10, 2006 at 10:52:33AM +0200, Andre Oppermann wrote: > > Sam Leffler wrote: > > >I committed the revised netif cloning api so you can now specify > > >parameters when cloning. I also modified the vlan code to use this > > >mechanism so doing something like: > > > > > >ifconfig vlan create vlan 1 vlandev em0 > > > > > > > /me wants to do: > > > > "ifconfig em0.1 inet 192.168.2.2/24" > > > > Even simpler. And yes, this works already but only if if_vlan.ko > > was loaded before or compiled into the kernel. It doesn't do auto- > > load. > > Unless cause ifconfig to autoload all if_ modules when cloning fails, > it's impossiable to support this without having if_vlan loaded. That > said the current plan it to eliminate if_vlan and integrate vlan support > directly into if_ethersubr.c to allow use to correctly handle the > default vlan case among otherthings. Is anyone working on this? The bridge code needs access to the vlan tag to properly hash the address as each vlan is a seperate broadcast domain, this would be much easier with vlan merged to if_ethersubr.c. Andrew