Commit 8cec2f49 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller

net: Convert mpls_net_ops

These pernet_operations register and unregister sysctl table.
Exit methods frees platform_labels from net::mpls::platform_label.
Everything is per-net, and they looks safe to be marked async.
Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 489b30b5
...@@ -2488,6 +2488,7 @@ static void mpls_net_exit(struct net *net) ...@@ -2488,6 +2488,7 @@ static void mpls_net_exit(struct net *net)
static struct pernet_operations mpls_net_ops = { static struct pernet_operations mpls_net_ops = {
.init = mpls_net_init, .init = mpls_net_init,
.exit = mpls_net_exit, .exit = mpls_net_exit,
.async = true,
}; };
static struct rtnl_af_ops mpls_af_ops __read_mostly = { static struct rtnl_af_ops mpls_af_ops __read_mostly = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment