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

net: Convert nf_tables_net_ops

These pernet_operations looks nicely separated per-net.
Exit method unregisters net's nf tables objects.
We allow them be executed in parallel.
Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 649b9826
...@@ -6596,6 +6596,7 @@ static void __net_exit nf_tables_exit_net(struct net *net) ...@@ -6596,6 +6596,7 @@ static void __net_exit nf_tables_exit_net(struct net *net)
static struct pernet_operations nf_tables_net_ops = { static struct pernet_operations nf_tables_net_ops = {
.init = nf_tables_init_net, .init = nf_tables_init_net,
.exit = nf_tables_exit_net, .exit = nf_tables_exit_net,
.async = true,
}; };
static int __init nf_tables_module_init(void) static int __init nf_tables_module_init(void)
......
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