aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-03-07 12:39:33 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-08 12:36:44 -0500
commit5a8e9be69d163fcd3442c4ed8fbaaaf0c7f464e6 (patch)
tree2447edf75425c8b87a55bdbf769e8241725ecc30 /net/netfilter
parentnet: Convert nf_tables_net_ops (diff)
downloadlinux-dev-5a8e9be69d163fcd3442c4ed8fbaaaf0c7f464e6.tar.xz
linux-dev-5a8e9be69d163fcd3442c4ed8fbaaaf0c7f464e6.zip
net: Convert nfnetlink_net_ops
These pernet_operations create and destroy net::nfnl socket of NETLINK_NETFILTER code. There are no other places, where such type the socket is created, except these pernet_operations. It seem other pernet_operations depending on CONFIG_NETFILTER_NETLINK send messages to this socket. So, we mark it async. 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/nfnetlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c
index 03ead8a9e90c..84fc4954862d 100644
--- a/net/netfilter/nfnetlink.c
+++ b/net/netfilter/nfnetlink.c
@@ -566,6 +566,7 @@ static void __net_exit nfnetlink_net_exit_batch(struct list_head *net_exit_list)
static struct pernet_operations nfnetlink_net_ops = {
.init = nfnetlink_net_init,
.exit_batch = nfnetlink_net_exit_batch,
+ .async = true,
};
static int __init nfnetlink_init(void)