Subject: [PATCH 5/6] sky2: no jumbo on Yukon FE

From: Stephen Hemminger <[email-masked]>
Date: Wed, 11 Apr 2007 14:48:02 -0700

The Yukon FE (100mbit only) chips do not support large packets.

Signed-off-by: Stephen Hemminger <[email-masked]>

--- sky2-2.6.21.orig/drivers/net/sky2.c	2007-04-11 14:40:42.000000000 -0700
+++ sky2-2.6.21/drivers/net/sky2.c	2007-04-11 14:41:09.000000000 -0700
@@ -1899,6 +1899,9 @@ static int sky2_change_mtu(struct net_de
 	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;

--
Stephen Hemminger <[email-masked]>