Subject: Re: Network driver detach
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Lennart Augustsson <lennart@augustsson.net>
List: tech-kern
Date: 01/27/2000 04:16:44
Jason Thorpe wrote:
> On Thu, 27 Jan 2000 01:25:22 +0100
> Lennart Augustsson <lennart@augustsson.net> wrote:
>
> > Unless someone protests I'm going to change some network drivers to do
> > something, IMHO, more sane in their detach routines.
> > Basically, they will call
> > ether_ifdetach(ifp);
> > if_detach(ifp);
> > and if they have PHYs
> > mii_phy_detach(...);
>
> Please hold off. I worked on this basically all day, and have it working
> for some CardBus cards. I am also doing the ifaddr reference counting,
> etc., and have fixed other bugs related to how detach was being done
> by the drivers which have the code #if'd out.
>
> I expect to commit something by this weekend.
Good enough for me. I just want to be able to unplug my network adapters.
--
-- Lennart