diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-02-26 14:02:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-27 17:01:38 +0100 |
commit | 5c155c50244a0c6e1a7778ae7b4d2753e5e1f617 (patch) | |
tree | f7301d42669f466cee4597f79559bb633f571f72 /net/ipv6/ip6_gre.c | |
parent | net: Convert ipgre_net_ops, ipgre_tap_net_ops, erspan_net_ops, vti_net_ops an... (diff) | |
download | linux-5c155c50244a0c6e1a7778ae7b4d2753e5e1f617.tar.xz linux-5c155c50244a0c6e1a7778ae7b4d2753e5e1f617.zip |
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 <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_gre.c')
-rw-r--r-- | net/ipv6/ip6_gre.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 3c353125546d..3026662a6413 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[], |