ip6_gre: remove the incorrect mtu limit for ipgre tap
authorXin Long <lucien.xin@gmail.com>
Mon, 18 Dec 2017 06:25:09 +0000 (14:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 18:45:32 +0000 (13:45 -0500)
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 <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c

index 4cfd8e0696fe77f6d7af7ca3579a2418aef972f6..416c8913f132c0c662ed811f74b6127083ad22a8 100644 (file)
@@ -1308,6 +1308,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;