]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: add rtnl_get_net_ns_capable()
authorChristian Brauner <christian@brauner.io>
Tue, 4 Sep 2018 19:53:47 +0000 (21:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Sep 2018 05:27:11 +0000 (22:27 -0700)
commit804741d787a8df36e9886570ebb88c63fca11475
treee3f10f170946ec3834049ffce04402802a052ad9
parent9eec6b6c8307936eca1a1c3a83e7f1fd92fa90c0
rtnetlink: add rtnl_get_net_ns_capable()

get_target_net() will be used in follow-up patches in ipv{4,6} codepaths to
retrieve network namespaces based on network namespace identifiers. So
remove the static declaration and export in the rtnetlink header. Also,
rename it to rtnl_get_net_ns_capable() to make it obvious what this
function is doing.
Export rtnl_get_net_ns_capable() so it can be used when ipv6 is built as
a module.

Signed-off-by: Christian Brauner <christian@brauner.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rtnetlink.h
net/core/rtnetlink.c