]> asedeno.scripts.mit.edu Git - linux.git/commit
ip_gre: remove the incorrect mtu limit for ipgre tap
authorXin Long <lucien.xin@gmail.com>
Mon, 18 Dec 2017 06:24:35 +0000 (14:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 18:45:32 +0000 (13:45 -0500)
commitcfddd4c33c254954927942599d299b3865743146
tree72cf144a6cb4d52630770ddbbdc3c23a615d022d
parenta93bf0ff449064e6b7f44e58522e940f88c0d966
ip_gre: remove the incorrect mtu limit for ipgre tap

ipgre tap driver calls ether_setup(), after commit 61e84623ace3
("net: centralize net_device min/max MTU checking"), the range
of mtu is [min_mtu, max_mtu], which is [68, 1500] by default.

It causes the dev mtu of the ipgre tap device to not be greater
than 1500, this limit value is not correct for ipgre tap device.

Besides, it's .change_mtu already does the right check. So this
patch is just to set max_mtu as 0, and leave the check to it's
.change_mtu.

Fixes: 61e84623ace3 ("net: centralize net_device min/max MTU checking")
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