From: Stephen Hemminger Date: Wed, 11 Apr 2007 21:48:02 +0000 (-0700) Subject: sky2: no jumbo on Yukon FE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2adf4f65a70f94cbb3bb4dffd4bbc70cc383071;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sky2: no jumbo on Yukon FE The Yukon FE (100mbit only) chips do not support large packets. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 4d1ec78c437a..6950b2d685e1 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -1899,6 +1899,9 @@ static int sky2_change_mtu(struct net_device *dev, int new_mtu) if (new_mtu < ETH_ZLEN || new_mtu > ETH_JUMBO_MTU) return -EINVAL; + if (new_mtu > ETH_DATA_LEN && hw->chip_id == CHIP_ID_YUKON_FE) + return -EINVAL; + if (!netif_running(dev)) { dev->mtu = new_mtu; return 0;