Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d2adf4f65a70f94cbb3bb4dffd4bbc70cc383071
Commit:     d2adf4f65a70f94cbb3bb4dffd4bbc70cc383071
Parent:     b628ed986d681c708aec64418c2c7f6a6b715855
Author:     Stephen Hemminger <[EMAIL PROTECTED]>
AuthorDate: Wed Apr 11 14:48:02 2007 -0700
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Thu Apr 19 15:01:17 2007 -0400

    sky2: no jumbo on Yukon FE
    
    The Yukon FE (100mbit only) chips do not support large packets.
    
    Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 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 4d1ec78..6950b2d 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)
        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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to