On Tue, 07 Feb 2006 16:11:51 -0800 (PST) "David S. Miller" <[EMAIL PROTECTED]> wrote:
> From: Ben Greear <[EMAIL PROTECTED]> > Date: Tue, 07 Feb 2006 15:54:06 -0800 > > > What do you think about having no ref counting, and upon removal of > > a network device, we notify each logic unit that deals with skbs > > or other things that link to the netdev and ask it to clean all > > references to the NIC in question? > > That's a lot of notifiers. Routes and neighbour cache entries are > relatively easy, and we do that today, but sockets and netfilter > can get really messy. How bad would per-cpu'ish counting be? There are always user's with 1000's of vlan's etc; so it would have to scale. Even a counter that is hashed on cpu # would be better (assuming they weren't all in the same cache line). Also, isn't a lot of the problem reduced if network devices are affinitied? -- Stephen Hemminger <[EMAIL PROTECTED]> OSDL http://developer.osdl.org/~shemminger - 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