commit | fb699dfd426a189fe33b91586c15176a75c8aed0 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <eric.dumazet@gmail.com> | Mon Oct 19 19:18:49 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Oct 29 01:42:55 2009 -0700 |
tree | c90a8aadc10ac9a9e7b67b2d36ce61853917e3ba | |
parent | e0c5567d06ecf7777b6c46f4d933a0a6e09a44f3 [diff] |
net: Introduce dev_get_by_index_rcu() Some workloads hit dev_base_lock rwlock pretty hard. We can use RCU lookups to avoid touching this rwlock. netdevices are already freed after a RCU grace period, so this patch adds no penalty at device dismantle time. dev_ifname() converted to dev_get_by_index_rcu() Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>