]> git.baikalelectronics.ru Git - kernel.git/commit
net: rtnetlink: introduce helper to get net_device instance by ifname
authorJiri Pirko <jiri@mellanox.com>
Mon, 30 Sep 2019 09:48:19 +0000 (11:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2019 21:47:19 +0000 (14:47 -0700)
commit43b92b335442c59961f2cf9e00ad0304f92e8326
tree28cabd0167e6e6fd61167d54e179fe12469d21d8
parent4a1890e2e81e6a2928a54f288dd981562eac2e1a
net: rtnetlink: introduce helper to get net_device instance by ifname

Introduce helper function rtnl_get_dev() that gets net_device structure
instance pointer according to passed ifname or ifname attribute.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c