mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
b628ed986d
commit
d2adf4f65a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue