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)
commitcc6090e985d7d62bf2f1230c507d5fbe9899c9ec
tree28cabd0167e6e6fd61167d54e179fe12469d21d8
parent7af12cba4ef0caf20bddf84f90509e71006d5408
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