Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27238
b: refs/heads/master
c: 77b2aad
h: refs/heads/master
v: v3
  • Loading branch information
Auke Kok committed Apr 15, 2006
1 parent 12418d4 commit e51b5ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: 9e2feace1acd38d7a3b1275f7f9f8a397d09040e
refs/heads/master: 77b2aad5b4fcb6e050b64bbda158ce528f933023
14 changes: 8 additions & 6 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3400,13 +3400,15 @@ e1000_clean_tx_irq(struct e1000_adapter *adapter,

tx_ring->next_to_clean = i;

spin_lock(&tx_ring->tx_lock);

#define TX_WAKE_THRESHOLD 32
if (unlikely(cleaned && netif_queue_stopped(netdev) &&
netif_carrier_ok(netdev)))
netif_wake_queue(netdev);

spin_unlock(&tx_ring->tx_lock);
netif_carrier_ok(netdev))) {
spin_lock(&tx_ring->tx_lock);
if (netif_queue_stopped(netdev) &&
(E1000_DESC_UNUSED(tx_ring) >= TX_WAKE_THRESHOLD))
netif_wake_queue(netdev);
spin_unlock(&tx_ring->tx_lock);
}

if (adapter->detect_tx_hung) {
/* Detect a transmit hang in hardware, this serializes the
Expand Down

0 comments on commit e51b5ca

Please sign in to comment.