Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41487
b: refs/heads/master
c: fcfb122
h: refs/heads/master
i:
  41485: 5ca5049
  41483: dad39c4
  41479: 9ac0cad
  41471: 8672d41
v: v3
  • Loading branch information
Jesse Brandeburg authored and Jeff Garzik committed Dec 2, 2006
1 parent c811959 commit 7c1d8b4
Show file tree
Hide file tree
Showing 4 changed files with 7 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: fc2307d00c15385fbdbb5928a8517e5f63c3d068
refs/heads/master: fcfb1224250d7877b6a6c6a947986e08b2160fb6
1 change: 1 addition & 0 deletions trunk/drivers/net/e1000/e1000.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ struct e1000_adapter {

/* TX */
struct e1000_tx_ring *tx_ring; /* One per active queue */
unsigned int restart_queue;
unsigned long tx_queue_len;
uint32_t txd_cmd;
uint32_t tx_int_delay;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/e1000/e1000_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ static const struct e1000_stats e1000_gstrings_stats[] = {
{ "tx_single_coll_ok", E1000_STAT(stats.scc) },
{ "tx_multi_coll_ok", E1000_STAT(stats.mcc) },
{ "tx_timeout_count", E1000_STAT(tx_timeout_count) },
{ "tx_restart_queue", E1000_STAT(restart_queue) },
{ "rx_long_length_errors", E1000_STAT(stats.roc) },
{ "rx_short_length_errors", E1000_STAT(stats.ruc) },
{ "rx_align_errors", E1000_STAT(stats.algnerrc) },
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2974,6 +2974,7 @@ static int __e1000_maybe_stop_tx(struct net_device *netdev, int size)

/* A reprieve! */
netif_start_queue(netdev);
++adapter->restart_queue;
return 0;
}

Expand Down Expand Up @@ -3654,8 +3655,10 @@ e1000_clean_tx_irq(struct e1000_adapter *adapter,
* sees the new next_to_clean.
*/
smp_mb();
if (netif_queue_stopped(netdev))
if (netif_queue_stopped(netdev)) {
netif_wake_queue(netdev);
++adapter->restart_queue;
}
}

if (adapter->detect_tx_hung) {
Expand Down

0 comments on commit 7c1d8b4

Please sign in to comment.