]> git.baikalelectronics.ru Git - kernel.git/commit
net: Introduce dev_get_by_index_rcu()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 19 Oct 2009 19:18:49 +0000 (19:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Oct 2009 08:42:55 +0000 (01:42 -0700)
commitf6a795b7577b7d530f0b3c4a34b895f6db555029
treec90a8aadc10ac9a9e7b67b2d36ce61853917e3ba
parent0e5e6ff38305e090901f5f0c6977b78e9bfb4628
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>
include/linux/netdevice.h
net/core/dev.c