netdev
[Top] [All Lists]

Re: [PATCH] (8/8) loopback device simplification

To: Stephen Hemminger <shemminger@xxxxxxxx>
Subject: Re: [PATCH] (8/8) loopback device simplification
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Thu, 4 Sep 2003 12:07:43 -0700
Cc: jgarzik@xxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20030904121421.51b2f993.shemminger@xxxxxxxx>
References: <20030903164921.7d923008.shemminger@xxxxxxxx> <3F568AC0.5090601@xxxxxxxxx> <20030903204105.0f01f131.davem@xxxxxxxxxx> <20030904121421.51b2f993.shemminger@xxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Thu, 4 Sep 2003 12:14:21 -0700
Stephen Hemminger <shemminger@xxxxxxxx> wrote:

> On Wed, 3 Sep 2003 20:41:05 -0700
> "David S. Miller" <davem@xxxxxxxxxx> wrote:
> 
> > The fact that we export the list and it's locking makes it
> > really hard to change things.
> 
> my current idea is to switch dev_base_lock over to RCU and
> change dev_base to a list macro.
> 
> #define for_each_netdev(_d)   list_for_each_entry_rcu(_d, &netdev_base, 
> dev_list)

Also see other threads where we were discussing making
it into a hash table in order to speed up search and
name allocation.


<Prev in Thread] Current Thread [Next in Thread>