[Bridge] Re: why network devices don't do reference counting?

David Miller davem at davemloft.net
Thu Sep 27 12:01:14 PDT 2007


From: Helge Hafting <helge.hafting at aitel.hist.no>
Date: Thu, 27 Sep 2007 13:54:23 +0200

> Wouldn't it be enough to down all the interfaces and close all the sockets?
> No need to bring down every app.

And there are routes, and neighbour cache entries, and all sorts
of external references to the stack.  For example, if a packet
gets stuck in a device because the link just went down, that
can hold references to the ipv6 module from several angles.

But you have to add code to actually keep track of all of these
references and there is no such code in the ipv6 module at all
and it's a nontrivial time consuming job to implement it.


More information about the Bridge mailing list