Skip to content

Commit

Permalink
ip6_gre: remove the incorrect mtu limit for ipgre tap
Browse files Browse the repository at this point in the history
The same fix as the patch "ip_gre: remove the incorrect mtu limit for
ipgre tap" is also needed for ip6_gre.

Fixes: 61e8462 ("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>
  • Loading branch information
Xin Long authored and David S. Miller committed Dec 19, 2017
1 parent cfddd4c commit 2c52129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv6/ip6_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2c52129

Please sign in to comment.