]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
net, ip6_tunnel: fix namespaces move
authorWilliam Dauchy <w.dauchy@criteo.com>
Tue, 21 Jan 2020 20:49:54 +0000 (21:49 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:27:56 +0000 (16:27 +0100)
BugLink: https://bugs.launchpad.net/bugs/1861385
[ Upstream commit 5311a69aaca30fa849c3cc46fb25f75727fb72d0 ]

in the same manner as commit d0f418516022 ("net, ip_tunnel: fix
namespaces move"), fix namespace moving as it was broken since commit
8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnel"), but for
ipv6 this time; there is no reason to keep it for ip6_tunnel.

Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnel")
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/ipv6/ip6_tunnel.c

index 2f376dbc37d52ea6a16cfb352f7f68d5254df732..b5dd20c4599bb1fc2515f6a78b8a6ee3287d03e5 100644 (file)
@@ -1877,10 +1877,8 @@ static int ip6_tnl_dev_init(struct net_device *dev)
        if (err)
                return err;
        ip6_tnl_link_config(t);
-       if (t->parms.collect_md) {
-               dev->features |= NETIF_F_NETNS_LOCAL;
+       if (t->parms.collect_md)
                netif_keep_dst(dev);
-       }
        return 0;
 }