Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46489
b: refs/heads/master
c: 9669f53
h: refs/heads/master
i:
  46487: 82f7ce9
v: v3
  • Loading branch information
Auke Kok authored and Jeff Garzik committed Feb 5, 2007
1 parent b925a17 commit 1d6da3d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: 60cba200f11b6f90f35634c5cd608773ae3721b7
refs/heads/master: 9669f53b98974ede4728e288316296666722ab8c
15 changes: 11 additions & 4 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2583,15 +2583,22 @@ e1000_watchdog(unsigned long data)

if (link) {
if (!netif_carrier_ok(netdev)) {
uint32_t ctrl;
boolean_t txb2b = 1;
e1000_get_speed_and_duplex(&adapter->hw,
&adapter->link_speed,
&adapter->link_duplex);

DPRINTK(LINK, INFO, "NIC Link is Up %d Mbps %s\n",
adapter->link_speed,
adapter->link_duplex == FULL_DUPLEX ?
"Full Duplex" : "Half Duplex");
ctrl = E1000_READ_REG(&adapter->hw, CTRL);
DPRINTK(LINK, INFO, "NIC Link is Up %d Mbps %s, "
"Flow Control: %s\n",
adapter->link_speed,
adapter->link_duplex == FULL_DUPLEX ?
"Full Duplex" : "Half Duplex",
((ctrl & E1000_CTRL_TFCE) && (ctrl &
E1000_CTRL_RFCE)) ? "RX/TX" : ((ctrl &
E1000_CTRL_RFCE) ? "RX" : ((ctrl &
E1000_CTRL_TFCE) ? "TX" : "None" )));

/* tweak tx_queue_len according to speed/duplex
* and adjust the timeout factor */
Expand Down

0 comments on commit 1d6da3d

Please sign in to comment.