aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-03-07 12:39:23 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-08 12:36:43 -0500
commitc7c5e435e44e585f84472f88b323553c794844c4 (patch)
tree02f63a9af58dad4528ec8bee3f59a9a986018fb8 /net/netfilter
parentnet: Convert xfrm_user_net_ops (diff)
downloadlinux-dev-c7c5e435e44e585f84472f88b323553c794844c4.tar.xz
linux-dev-c7c5e435e44e585f84472f88b323553c794844c4.zip
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: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nf_tables_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index 558593e6a0a3..8e19c86d1aa6 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -6596,6 +6596,7 @@ static void __net_exit nf_tables_exit_net(struct net *net)
static struct pernet_operations nf_tables_net_ops = {
.init = nf_tables_init_net,
.exit = nf_tables_exit_net,
+ .async = true,
};
static int __init nf_tables_module_init(void)