projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b628ed9
)
sky2: no jumbo on Yukon FE
author
Stephen Hemminger
<shemminger@linux-foundation.org>
Wed, 11 Apr 2007 21:48:02 +0000
(14:48 -0700)
committer
Jeff Garzik
<jeff@garzik.org>
Thu, 19 Apr 2007 19:01:17 +0000
(15:01 -0400)
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>
drivers/net/sky2.c
patch
|
blob
|
history
diff --git
a/drivers/net/sky2.c
b/drivers/net/sky2.c
index 4d1ec78c437a464eb801585983ec7d2e919113d0..6950b2d685e173ef2946fe75f34ed104023a364c 100644
(file)
--- 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;