提交 d2adf4f6 编写于 作者: S Stephen Hemminger 提交者: Jeff Garzik

sky2: no jumbo on Yukon FE

The Yukon FE (100mbit only) chips do not support large packets.
Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 b628ed98
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册