From: Eric Dumazet <[EMAIL PROTECTED]>
Date: Wed, 08 Feb 2006 00:23:45 +0100

> Some devices are *never* unregistered : loopback, or statically linked 
> drivers, thus we are refcounting them for nothing.

Statically linked drivers can have netdev's that get unregistered
and free'd up.  For example we have a few cases where configuration
calls allocate/register and deallocate/unregister net devices.

I understand what you're trying to do, but I don't think this is
the way to do it.

I once thought we could play some games because of the invariant that
if we have a route attached to the SKB, that holds an implicit
reference for the netdevice too.  But I know there are cases where
the the route attached to the SKB is to a different device than the
one that skb->dev is and should be set to.

There is also a temptation to deal with this using per-cpu (or
per-node) counters, and that's a too bloated solution.  We should
be making datastructures smaller not larger.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to