ip_gre: ipgre_tap device should keep dst
authorXin Long <lucien.xin@gmail.com>
Thu, 28 Sep 2017 05:23:31 +0000 (13:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2017 02:46:42 +0000 (03:46 +0100)
commitd51711c0557d6dbd26c63144aef32c7b3ec264b9
treeabae57c4f1d5ee8b9ea5cd441aa24676585ffd24
parentfef0035c0f31322d417d1954bba5ab959bf91183
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>
net/ipv4/ip_gre.c