Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109250
b: refs/heads/master
c: 7a6ea55
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Duyck authored and Jeff Garzik committed Aug 27, 2008
1 parent 8e8be95 commit 7a088cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: a866bbf6aacf95f849810079442a20be118ce905
refs/heads/master: 7a6ea550f2f7592742ac765e5a3b4b5d1461e0bd
10 changes: 9 additions & 1 deletion trunk/drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,9 @@ static void igb_watchdog_task(struct work_struct *work)
struct igb_ring *tx_ring = adapter->tx_ring;
struct e1000_mac_info *mac = &adapter->hw.mac;
u32 link;
u32 eics = 0;
s32 ret_val;
int i;

if ((netif_carrier_ok(netdev)) &&
(rd32(E1000_STATUS) & E1000_STATUS_LU))
Expand Down Expand Up @@ -2392,7 +2394,13 @@ static void igb_watchdog_task(struct work_struct *work)
}

/* Cause software interrupt to ensure rx ring is cleaned */
wr32(E1000_ICS, E1000_ICS_RXDMT0);
if (adapter->msix_entries) {
for (i = 0; i < adapter->num_rx_queues; i++)
eics |= adapter->rx_ring[i].eims_value;
wr32(E1000_EICS, eics);
} else {
wr32(E1000_ICS, E1000_ICS_RXDMT0);
}

/* Force detection of hung controller every watchdog period */
tx_ring->detect_tx_hung = true;
Expand Down

0 comments on commit 7a088cb

Please sign in to comment.