[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <152024954353.3454.15609161119959729423.stgit@localhost.localdomain>
Date: Mon, 05 Mar 2018 14:32:23 +0300
From: Kirill Tkhai <ktkhai@...tuozzo.com>
To: pablo@...filter.org, kadlec@...ckhole.kfki.hu, fw@...len.de,
stephen@...workplumber.org, davem@...emloft.net,
dmitry.tarnyagin@...kless.no, socketcan@...tkopp.net,
mkl@...gutronix.de, gerrit@....abdn.ac.uk, yoshfuji@...ux-ipv6.org,
johannes.berg@...el.com, garsilva@...eddedor.com,
ross.lagerwall@...rix.com, aconole@...heb.org,
netdev@...r.kernel.org, ktkhai@...tuozzo.com
Subject: [PATCH net-next 12/12] net: Convert proto_gre_net_ops
These pernet_operations register and unregister sysctl.
nf_conntrack_l4proto_gre4->init_net is simple memory
initializer. Also, exit method removes gre keymap_list,
which is per-net. This looks safe to be executed
in parallel with other pernet_operations.
Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>
---
net/netfilter/nf_conntrack_proto_gre.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/netfilter/nf_conntrack_proto_gre.c b/net/netfilter/nf_conntrack_proto_gre.c
index d049ea5a3770..9bcd72fe91f9 100644
--- a/net/netfilter/nf_conntrack_proto_gre.c
+++ b/net/netfilter/nf_conntrack_proto_gre.c
@@ -406,6 +406,7 @@ static struct pernet_operations proto_gre_net_ops = {
.exit = proto_gre_net_exit,
.id = &proto_gre_net_id,
.size = sizeof(struct netns_proto_gre),
+ .async = true,
};
static int __init nf_ct_proto_gre_init(void)
Powered by blists - more mailing lists