cns3xxx: fix mtu setting with kernel 4.14
authorMathias Kresin <dev@kresin.me>
Sun, 18 Feb 2018 21:48:44 +0000 (22:48 +0100)
committerMathias Kresin <dev@kresin.me>
Thu, 16 Aug 2018 19:20:57 +0000 (21:20 +0200)
commit22ae14d0e7b882699f8512a75b4d06766aee4b78
treec40123547604f69dbf2dcb69da2bb89a5b586aba
parent8c91807214c42b481a0893e118d46f488419468a
cns3xxx: fix mtu setting with kernel 4.14

Since kernel 4.10 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's necessary to set a max_mtu if a mtu > 1500 is supported.

Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c