Skip to content

Commit c29babb

Browse files
Kirill Tkhaidavem330
authored andcommitted
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>
1 parent b04a3d0 commit c29babb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netfilter/nf_conntrack_proto_gre.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ static struct pernet_operations proto_gre_net_ops = {
406406
.exit = proto_gre_net_exit,
407407
.id = &proto_gre_net_id,
408408
.size = sizeof(struct netns_proto_gre),
409+
.async = true,
409410
};
410411

411412
static int __init nf_ct_proto_gre_init(void)

0 commit comments

Comments
 (0)