提交 753d525a 编写于 作者: K Kirill Tkhai 提交者: David S. Miller

net: Convert inet6_net_ops

init method initializes sysctl defaults, allocates
percpu arrays and creates /proc entries.
exit method reverts the above.

There are no pernet_operations, which are interested
in the above entities of foreign net namespace, so
inet6_net_ops are able to be marked as async.
Signed-off-by: NKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3021efb4
...@@ -857,6 +857,7 @@ static void __net_exit inet6_net_exit(struct net *net) ...@@ -857,6 +857,7 @@ static void __net_exit inet6_net_exit(struct net *net)
static struct pernet_operations inet6_net_ops = { static struct pernet_operations inet6_net_ops = {
.init = inet6_net_init, .init = inet6_net_init,
.exit = inet6_net_exit, .exit = inet6_net_exit,
.async = true,
}; };
static const struct ipv6_stub ipv6_stub_impl = { static const struct ipv6_stub ipv6_stub_impl = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册