From: Eric Dumazet Date: Wed, 21 Oct 2009 10:59:31 +0000 (+0000) Subject: rtnetlink: rtnl_setlink() and rtnl_getlink() changes X-Git-Tag: v2.6.33-rc1~388^2~741 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3d1289126e7b14307074b76bf1677015ea5036f;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed