OSDN Git Service

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)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 9 Oct 2019 02:46:42 +0000 (19:46 -0700)
commit4123f637a5129470ff9d3cb00a5a4e213f2e15cc
treed73055bf42e3d95740b3af5e8abcee63ae0b7941
parenta17fd2cf2d3a78193222738171df561c334f1ae0
ip6erspan: remove the incorrect mtu limit for ip6erspan

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>
net/ipv6/ip6_gre.c