From owner-cvs-all Tue Jul 4 21: 1:12 2000 Delivered-To: cvs-all@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id 4BB6D37B515; Tue, 4 Jul 2000 21:01:08 -0700 (PDT) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.9.3/8.8.7) with ESMTP id XAA19613; Tue, 4 Jul 2000 23:59:25 -0400 (EDT) Date: Tue, 4 Jul 2000 23:59:25 -0400 (EDT) From: "Matthew N. Dodd" To: Warner Losh Cc: Poul-Henning Kamp , Garrett Wollman , Nick Hibma , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys bus.h bus_private.h src/sys/kern subr_bus.c In-Reply-To: <200007031652.KAA23743@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 3 Jul 2000, Warner Losh wrote: > If I unplug a network card, you'd think it was fairly simple to just > shove it back it and be where you were before. However, the NIC may > have changed (if I have two identical cards), which means that IPv6 > stuff needs to do special things. You have to go through a > configuration process again to ensure that things are working right. > What advantage is gained by having the logical device stick around in > the interrum? I think PHK is making the mistake of thinking that the kernel should somehow do all the dirty stuff when he hotplugs a PCI card or something. In reality you would receive an event from the device daemon (devd?) which would trigger a script which would reset the MAC address, and bring up the interface (via DHCP or whatever). Ideally 'devd' is given a complete path so that you can wire down your cards by bus/slot# if the bus supports that concept (since you may hot-plug out of order and 'eth1' may become 'eth0' or what have you.) -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message