Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103471
b: refs/heads/master
c: 0f8ecba
h: refs/heads/master
i:
  103469: 892eeb2
  103467: 20b67b0
  103463: 33f65d9
  103455: 1e1b1a0
v: v3
  • Loading branch information
Jesse Brandeburg authored and Jeff Garzik committed Jul 11, 2008
1 parent dae28a0 commit 6484ab2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 1a342d224afb03196e3df28a271f3ddf3787e8f4
refs/heads/master: 0f8ecbadae4bd9f085e605c08347ed3077a6146f
15 changes: 10 additions & 5 deletions trunk/drivers/net/ixgb/ixgb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1855,12 +1855,17 @@ ixgb_clean_tx_irq(struct ixgb_adapter *adapter)

tx_ring->next_to_clean = i;

if (unlikely(netif_queue_stopped(netdev))) {
spin_lock(&adapter->tx_lock);
if (netif_queue_stopped(netdev) && netif_carrier_ok(netdev) &&
(IXGB_DESC_UNUSED(tx_ring) >= DESC_NEEDED))
if (unlikely(cleaned && netif_carrier_ok(netdev) &&
IXGB_DESC_UNUSED(tx_ring) >= DESC_NEEDED)) {
/* Make sure that anybody stopping the queue after this
* sees the new next_to_clean. */
smp_mb();

if (netif_queue_stopped(netdev) &&
!(test_bit(__IXGB_DOWN, &adapter->flags))) {
netif_wake_queue(netdev);
spin_unlock(&adapter->tx_lock);
++adapter->restart_queue;
}
}

if(adapter->detect_tx_hung) {
Expand Down

0 comments on commit 6484ab2

Please sign in to comment.