diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2013-10-01 12:04:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-01 12:55:53 -0400 |
commit | 205983c43700ac3a81e7625273a3fa83cd2759b5 (patch) | |
tree | 60f616bf48309fa33296962a3a8a6e20b327d6c3 /net/ipv6/sit.c | |
parent | 9cb17124687026282f93c09a4fd42e0ccd1846ce (diff) |
sit: allow to use rtnl ops on fb tunnel
rtnl ops where introduced by ba3e3f50a0e5 ("sit: advertise tunnel param via
rtnl"), but I forget to assign rtnl ops to fb tunnels.
Now that it is done, we must remove the explicit call to
unregister_netdevice_queue(), because the fallback tunnel is added to the queue
in sit_destroy_tunnels() when checking rtnl_link_ops of all netdevices (this
is valid since commit 5e6700b3bf98 ("sit: add support of x-netns")).
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/sit.c')
-rw-r--r-- | net/ipv6/sit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index afd5605aea7c..19269453a8ea 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c | |||
@@ -1666,6 +1666,7 @@ static int __net_init sit_init_net(struct net *net) | |||
1666 | goto err_alloc_dev; | 1666 | goto err_alloc_dev; |
1667 | } | 1667 | } |
1668 | dev_net_set(sitn->fb_tunnel_dev, net); | 1668 | dev_net_set(sitn->fb_tunnel_dev, net); |
1669 | sitn->fb_tunnel_dev->rtnl_link_ops = &sit_link_ops; | ||
1669 | /* FB netdevice is special: we have one, and only one per netns. | 1670 | /* FB netdevice is special: we have one, and only one per netns. |
1670 | * Allowing to move it to another netns is clearly unsafe. | 1671 | * Allowing to move it to another netns is clearly unsafe. |
1671 | */ | 1672 | */ |
@@ -1700,7 +1701,6 @@ static void __net_exit sit_exit_net(struct net *net) | |||
1700 | 1701 | ||
1701 | rtnl_lock(); | 1702 | rtnl_lock(); |
1702 | sit_destroy_tunnels(sitn, &list); | 1703 | sit_destroy_tunnels(sitn, &list); |
1703 | unregister_netdevice_queue(sitn->fb_tunnel_dev, &list); | ||
1704 | unregister_netdevice_many(&list); | 1704 | unregister_netdevice_many(&list); |
1705 | rtnl_unlock(); | 1705 | rtnl_unlock(); |
1706 | } | 1706 | } |