Skip to content

Commit 2d40557

Browse files
lxindavem330
authored andcommitted
ip6_gre: ip6gre_tap device should keep dst
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>
1 parent d51711c commit 2d40557

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv6/ip6_gre.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,7 @@ static void ip6gre_tap_setup(struct net_device *dev)
13111311
dev->features |= NETIF_F_NETNS_LOCAL;
13121312
dev->priv_flags &= ~IFF_TX_SKB_SHARING;
13131313
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
1314+
netif_keep_dst(dev);
13141315
}
13151316

13161317
static bool ip6gre_netlink_encap_parms(struct nlattr *data[],

0 commit comments

Comments
 (0)