diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-21 10:59:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-22 04:33:48 -0700 |
commit | a3d1289126e7b14307074b76bf1677015ea5036f (patch) | |
tree | 27b60edc21b35d9850daf9875f285c1f814e1939 /net/llc | |
parent | a61f80261306ad11d9c8a453307a56417cfeae03 (diff) | |
download | linux-3.10-a3d1289126e7b14307074b76bf1677015ea5036f.tar.gz linux-3.10-a3d1289126e7b14307074b76bf1677015ea5036f.tar.bz2 linux-3.10-a3d1289126e7b14307074b76bf1677015ea5036f.zip |
rtnetlink: rtnl_setlink() and rtnl_getlink() changes
rtnl_getlink() & rtnl_setlink() run with RTNL held, we can use
__dev_get_by_index() and __dev_get_by_name() variants and avoid
dev_hold()/dev_put()
Adds to rtnl_getlink() the capability to find a device by its name,
not only by its index.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/llc')
0 files changed, 0 insertions, 0 deletions