summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-03-15 12:11:06 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-17 17:07:39 -0400
commit8cec2f49dc413d6328067d22862b0bdd0f4305ec (patch)
tree58bbc638b6e60cbd7039f2285795446b9157ca88
parent489b30b53f0540b9f8e391cbb2839cea48b5d1c1 (diff)
downloadlinux-8cec2f49dc413d6328067d22862b0bdd0f4305ec.tar.bz2
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: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/mpls/af_mpls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index 7a4de6d618b1..d4a89a8be013 100644
--- a/net/mpls/af_mpls.c
+++ b/net/mpls/af_mpls.c
@@ -2488,6 +2488,7 @@ static void mpls_net_exit(struct net *net)
static struct pernet_operations mpls_net_ops = {
.init = mpls_net_init,
.exit = mpls_net_exit,
+ .async = true,
};
static struct rtnl_af_ops mpls_af_ops __read_mostly = {