From owner-freebsd-arch@FreeBSD.ORG Sat Apr 8 03:15:05 2006 Return-Path: X-Original-To: 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 C047716A401 for ; Sat, 8 Apr 2006 03:15:05 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from dbmail-mx1.orcon.net.nz (loadbalancer1.orcon.net.nz [219.88.242.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C79B43D4C for ; Sat, 8 Apr 2006 03:15:04 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received-SPF: none Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201]) by dbmail-mx1.orcon.net.nz (8.13.6/8.13.6/Debian-1) with SMTP id k383FhWl001127; Sat, 8 Apr 2006 15:15:44 +1200 Received: by heff.fud.org.nz (Postfix, from userid 1001) id A6EAB1CC37; Sat, 8 Apr 2006 15:14:55 +1200 (NZST) Date: Sat, 8 Apr 2006 15:14:55 +1200 From: Andrew Thompson To: Sam Leffler Message-ID: <20060408031455.GA20868@heff.fud.org.nz> References: <44370CD6.9090006@errno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44370CD6.9090006@errno.com> User-Agent: Mutt/1.5.11 X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on dbmail-mx1.orcon.net.nz X-Virus-Status: Clean Cc: arch@freebsd.org Subject: Re: ifnet cloning changes 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: Sat, 08 Apr 2006 03:15:05 -0000 On Fri, Apr 07, 2006 at 06:07:34PM -0700, Sam Leffler wrote: > The patch here: > > http://www.freebsd.org/~sam/clone.patch > > modifies the SIOCIFCREATE api in the kernel so that an opaque parameter > block can be passed down to ifnet cloning routines (actually the user > address is passed down and the caller must do the copyin since it alone > knows the size of the parameter block). This allows you to specify > parameters at the time a clone is done which can greatly simplify the > handling of cloned ifnets. This change is a prerequisite to bringing in > my 802.11 virtual ap work which depends on this to fix vap configuration > state at the time the vap is created. I think its a good idea. The src/sys/net/if_media.c change looks like its not meant to be there (in the final commit anyway). Andrew