From: Xin Long Date: Mon, 18 Dec 2017 06:25:09 +0000 (+0800) Subject: ip6_gre: remove the incorrect mtu limit for ipgre tap X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5dc4cbcfb5f2b43656283835c564eeae1951bf4d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ip6_gre: remove the incorrect mtu limit for ipgre tap [ Upstream commit 2c52129a7d74d017320804c6928de770815c5f4a ] The same fix as the patch "ip_gre: remove the incorrect mtu limit for ipgre tap" is also needed for ip6_gre. Fixes: 61e84623ace3 ("net: centralize net_device min/max MTU checking") Signed-off-by: Xin Long Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 5b4870caf268..e8ab306794d8 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -1335,6 +1335,7 @@ static void ip6gre_tap_setup(struct net_device *dev) ether_setup(dev); + dev->max_mtu = 0; dev->netdev_ops = &ip6gre_tap_netdev_ops; dev->needs_free_netdev = true; dev->priv_destructor = ip6gre_dev_free;