]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ip6_gre: ip6gre_tap device should keep dst
authorXin Long <lucien.xin@gmail.com>
Thu, 28 Sep 2017 05:23:50 +0000 (13:23 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:48:35 +0000 (09:48 -0500)
BugLink: http://bugs.launchpad.net/bugs/1723145
[ Upstream commit 2d40557cc702ed8e5edd9bd422233f86652d932e ]

The patch 'ip_gre: ipgre_tap device should keep dst' fixed
a issue that ipgre_tap mtu couldn't be updated in tx path.

The same fix is needed for ip6gre_tap as well.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
net/ipv6/ip6_gre.c

index 20f66f4c94605cc6e79a9843cc692d8b9035cd2f..1602b491b281123f691a4a7afc4ba5fe0a99ac55 100644 (file)
@@ -1311,6 +1311,7 @@ static void ip6gre_tap_setup(struct net_device *dev)
        dev->features |= NETIF_F_NETNS_LOCAL;
        dev->priv_flags &= ~IFF_TX_SKB_SHARING;
        dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
+       netif_keep_dst(dev);
 }
 
 static bool ip6gre_netlink_encap_parms(struct nlattr *data[],