Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37953
b: refs/heads/master
c: 249d71d
h: refs/heads/master
i:
  37951: bf549a7
v: v3
  • Loading branch information
Bruce Allan authored and Auke Kok committed Sep 27, 2006
1 parent 0670902 commit 21563a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f01607a5b5c8781ed5d5deae213b4f01283dba2
refs/heads/master: 249d71d694ee3a6c02067235995d6d4258d364f3
10 changes: 7 additions & 3 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3138,18 +3138,22 @@ e1000_change_mtu(struct net_device *netdev, int new_mtu)
}
break;
case e1000_82573:
/* only enable jumbo frames if ASPM is disabled completely
* this means both bits must be zero in 0x1A bits 3:2 */
/* Jumbo Frames not supported if:
* - this is not an 82573L device
* - ASPM is enabled in any way (0x1A bits 3:2) */
e1000_read_eeprom(&adapter->hw, EEPROM_INIT_3GIO_3, 1,
&eeprom_data);
if (eeprom_data & EEPROM_WORD1A_ASPM_MASK) {
if ((adapter->hw.device_id != E1000_DEV_ID_82573L) ||
(eeprom_data & EEPROM_WORD1A_ASPM_MASK)) {
if (max_frame > MAXIMUM_ETHERNET_FRAME_SIZE) {
DPRINTK(PROBE, ERR,
"Jumbo Frames not supported.\n");
return -EINVAL;
}
break;
}
/* ERT will be enabled later to enable wire speed receives */

/* fall through to get support */
case e1000_82571:
case e1000_82572:
Expand Down

0 comments on commit 21563a9

Please sign in to comment.