From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Fri, 09 Feb 2001 00:28:32 +0000 Subject: Re: Network hotplug semantics Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Today, hotplug events basically involve namespace update activities: for network hotplug events it's just "register" or "unregister". No event corresponds to "plugged". However, I think in general it'd be good to assume that network interfaces may not be "ready for use" right away. For example, there's no sense in even trying to figure out how to route (much less start advertising a route!) until the link is really usable. And when the interface isn't statically configured, the same issue is true for DHCP setup even earlier than that. There are two network API calls that seem like they're intended to be used in such cases: netif_device_attach(), and its sibling netif_device_detach() in linux/netdevice.h ... but they seem to just be queue block/unblock primitives, despite what their names imply. The way 3c59x.c and xirc2ps_cs.c use them seems to relate to handling hotplug and suspend/resume events. - Dave ----- Original Message ----- From: "Oliver Neukum" To: "Brad Hards" ; Sent: Thursday, February 08, 2001 12:32 AM Subject: Re: Network hotplug semantics > On Donnerstag, 8. Februar 2001 08:03, Brad Hards wrote: > > Situation: USB ethernet adapter (in my case, a KLSI one). > > > > Should the interface (e.g. ethX) be signalled when the device is plugged > > in to the USB port, or when the electrical connection of the 10BaseT > > wire is made? What counts as "plugged" in this case? > > Quite a lot of ethernet controllers can't tell you whether a wire is > connected. For other things like wireless networking the destinction is hard > to make. Thus to keep things unified, as soon as the card is up. > > Regards > Oliver > > _______________________________________________ > Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net > Linux-hotplug-devel@lists.sourceforge.net > http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel