From: Kirill Tkhai Date: Mon, 26 Feb 2018 13:02:03 +0000 (+0300) Subject: net: Convert ip6gre_net_ops X-Git-Tag: v5.15~9146^2~354^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c155c50244a0c6e1a7778ae7b4d2753e5e1f617;p=platform%2Fkernel%2Flinux-starfive.git net: Convert ip6gre_net_ops These pernet_operations are similar to bond_net_ops. Exit method unregisters all net ip6gre devices, and it looks like another pernet_operations are not interested in foreign net ip6gre list or net_generic()->tunnels_wc. Init method registers net device. So, it's possible to mark them async. Signed-off-by: Kirill Tkhai Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 3c35312..3026662 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -1517,6 +1517,7 @@ static struct pernet_operations ip6gre_net_ops = { .exit_batch = ip6gre_exit_batch_net, .id = &ip6gre_net_id, .size = sizeof(struct ip6gre_net), + .async = true, }; static int ip6gre_tunnel_validate(struct nlattr *tb[], struct nlattr *data[],