--- zzzz-none-000/linux-3.10.107/net/ethernet/eth.c 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/net/ethernet/eth.c 2021-11-10 11:53:56.000000000 +0000 @@ -37,6 +37,13 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ + +/** + * Some part of this file is modified by Ikanos Communications. + * + * Copyright (C) 2013-2014 Ikanos Communications. + */ + #include #include #include @@ -59,6 +66,9 @@ #include #include #include +#if defined(CONFIG_MACH_FUSIV) +#define MAX_ETH_DATA_LEN 1710 +#endif __setup("ether=", netdev_boot_setup); @@ -333,7 +343,11 @@ */ int eth_change_mtu(struct net_device *dev, int new_mtu) { +#ifdef CONFIG_MACH_FUSIV + if (new_mtu < 68 || new_mtu > MAX_ETH_DATA_LEN) +#else if (new_mtu < 68 || new_mtu > ETH_DATA_LEN) +#endif return -EINVAL; dev->mtu = new_mtu; return 0;