projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
649b982
)
net: Convert nf_tables_net_ops
author
Kirill Tkhai
<ktkhai@virtuozzo.com>
Wed, 7 Mar 2018 09:39:23 +0000
(12:39 +0300)
committer
David S. Miller
<davem@davemloft.net>
Thu, 8 Mar 2018 17:36:43 +0000
(12:36 -0500)
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>
net/netfilter/nf_tables_api.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index 558593e6a0a3b507a967ec1f75ddc15228807c09..8e19c86d1aa6d21ceab30db68ce888aa731e270d 100644
(file)
--- 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)