diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-05 14:32:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-05 18:48:28 +0300 |
commit | c29babb7fe26e1507e8c236abbfed6e944e42651 (patch) | |
tree | 95ba8ef311584da5214b6013cc0074e2d7921759 /net | |
parent | b04a3d098c4ca176849ee579880c63c052ce6776 (diff) | |
download | linux-c29babb7fe26e1507e8c236abbfed6e944e42651.tar.xz |
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@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_conntrack_proto_gre.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |