Skip to content

Commit d51711c

Browse files
lxindavem330
authored andcommitted
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 <jishi@redhat.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fef0035 commit d51711c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv4/ip_gre.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,7 @@ static int gre_tap_init(struct net_device *dev)
12231223
{
12241224
__gre_tunnel_init(dev);
12251225
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
1226+
netif_keep_dst(dev);
12261227

12271228
return ip_tunnel_init(dev);
12281229
}

0 commit comments

Comments
 (0)