Subject: Re: Network driver detach
To: Lennart Augustsson <lennart@augustsson.net>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 01/26/2000 18:50:44
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.

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>