]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc9910f934ca085bde69d905d13a0cc34681acf9
treeabae57c4f1d5ee8b9ea5cd441aa24676585ffd24
parent6ce540a01cb200aa84152e25aa01ab9fe437338f
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