diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/sky2.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
1899 | if (new_mtu < ETH_ZLEN || new_mtu > ETH_JUMBO_MTU) | 1899 | if (new_mtu < ETH_ZLEN || new_mtu > ETH_JUMBO_MTU) |
1900 | return -EINVAL; | 1900 | return -EINVAL; |
1901 | 1901 | ||
1902 | if (new_mtu > ETH_DATA_LEN && hw->chip_id == CHIP_ID_YUKON_FE) | ||
1903 | return -EINVAL; | ||
1904 | |||
1902 | if (!netif_running(dev)) { | 1905 | if (!netif_running(dev)) { |
1903 | dev->mtu = new_mtu; | 1906 | dev->mtu = new_mtu; |
1904 | return 0; | 1907 | return 0; |