|
@@ -1731,8 +1731,6 @@ static void __net_exit ip6_tnl_destroy_tunnels(struct ip6_tnl_net *ip6n)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- t = rtnl_dereference(ip6n->tnls_wc[0]);
|
|
|
- unregister_netdevice_queue(t->dev, &list);
|
|
|
unregister_netdevice_many(&list);
|
|
|
}
|
|
|
|
|
@@ -1752,6 +1750,7 @@ static int __net_init ip6_tnl_init_net(struct net *net)
|
|
|
if (!ip6n->fb_tnl_dev)
|
|
|
goto err_alloc_dev;
|
|
|
dev_net_set(ip6n->fb_tnl_dev, net);
|
|
|
+ ip6n->fb_tnl_dev->rtnl_link_ops = &ip6_link_ops;
|
|
|
/* FB netdevice is special: we have one, and only one per netns.
|
|
|
* Allowing to move it to another netns is clearly unsafe.
|
|
|
*/
|