From: Xin Long Date: Thu, 28 Sep 2017 05:23:31 +0000 (+0800) Subject: ip_gre: ipgre_tap device should keep dst X-Git-Tag: v5.15~10288^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d51711c0557d6dbd26c63144aef32c7b3ec264b9;p=platform%2Fkernel%2Flinux-starfive.git ip_gre: ipgre_tap device should keep dst Without keeping dst, the tunnel will not update any mtu/pmtu info, since it does not have a dst on the skb. Reproducer: client(ipgre_tap1 - eth1) <-----> (eth1 - ipgre_tap1)server After reducing eth1's mtu on client, then perforamnce became 0. This patch is to netif_keep_dst in gre_tap_init, as ipgre does. Reported-by: Jianlin Shi Signed-off-by: Xin Long Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 0162fb9..8b837f6 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -1223,6 +1223,7 @@ static int gre_tap_init(struct net_device *dev) { __gre_tunnel_init(dev); dev->priv_flags |= IFF_LIVE_ADDR_CHANGE; + netif_keep_dst(dev); return ip_tunnel_init(dev); }