diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-04-11 17:48:02 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-19 15:01:17 -0400 |
commit | d2adf4f65a70f94cbb3bb4dffd4bbc70cc383071 (patch) | |
tree | e6d951633d0a889c113aa99b237b358cd672adea /drivers/net/sky2.c | |
parent | b628ed986d681c708aec64418c2c7f6a6b715855 (diff) |
sky2: no jumbo on Yukon FE
The Yukon FE (100mbit only) chips do not support large packets.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sky2.c')
-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; |