ip6erspan: remove the incorrect mtu limit for ip6erspan
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Tue, 8 Oct 2019 09:56:03 +0000 (17:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:51:17 +0000 (14:51 +0100)
commitc0b6d8544b73bdf5ff7d5fb78b5a422415a4f19d
tree1c3b065262b357b17fbc7457caa241a13debf2a3
parent255aba7762bf83096d8437dc7c583ef9abea10a1
ip6erspan: remove the incorrect mtu limit for ip6erspan

[ Upstream commit 4123f637a5129470ff9d3cb00a5a4e213f2e15cc ]

ip6erspan 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 erspan device to not be greater
than 1500, this limit value is not correct for ip6erspan tap
device.

Fixes: 61e84623ace3 ("net: centralize net_device min/max MTU checking")
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/ip6_gre.c