Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46488
b: refs/heads/master
c: 60cba20
h: refs/heads/master
v: v3
  • Loading branch information
Jesse Brandeburg authored and Jeff Garzik committed Feb 5, 2007
1 parent 82f7ce9 commit b925a17
Show file tree
Hide file tree
Showing 2 changed files with 9 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: b5fc8f0c43d388d76ebbb5650b20f4ce4420a5ad
refs/heads/master: 60cba200f11b6f90f35634c5cd608773ae3721b7
13 changes: 8 additions & 5 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3814,7 +3814,7 @@ e1000_intr_msi(int irq, void *data)

for (i = 0; i < E1000_MAX_INTR; i++)
if (unlikely(!adapter->clean_rx(adapter, adapter->rx_ring) &
!e1000_clean_tx_irq(adapter, adapter->tx_ring)))
e1000_clean_tx_irq(adapter, adapter->tx_ring)))
break;

if (likely(adapter->itr_setting & 3))
Expand Down Expand Up @@ -3917,7 +3917,7 @@ e1000_intr(int irq, void *data)

for (i = 0; i < E1000_MAX_INTR; i++)
if (unlikely(!adapter->clean_rx(adapter, adapter->rx_ring) &
!e1000_clean_tx_irq(adapter, adapter->tx_ring)))
e1000_clean_tx_irq(adapter, adapter->tx_ring)))
break;

if (likely(adapter->itr_setting & 3))
Expand Down Expand Up @@ -3967,7 +3967,7 @@ e1000_clean(struct net_device *poll_dev, int *budget)
poll_dev->quota -= work_done;

/* If no Tx and not enough Rx work done, exit the polling mode */
if ((!tx_cleaned && (work_done == 0)) ||
if ((tx_cleaned && (work_done < work_to_do)) ||
!netif_running(poll_dev)) {
quit_polling:
if (likely(adapter->itr_setting & 3))
Expand Down Expand Up @@ -3997,7 +3997,7 @@ e1000_clean_tx_irq(struct e1000_adapter *adapter,
#ifdef CONFIG_E1000_NAPI
unsigned int count = 0;
#endif
boolean_t cleaned = FALSE;
boolean_t cleaned = TRUE;
unsigned int total_tx_bytes=0, total_tx_packets=0;

i = tx_ring->next_to_clean;
Expand Down Expand Up @@ -4028,7 +4028,10 @@ e1000_clean_tx_irq(struct e1000_adapter *adapter,
#ifdef CONFIG_E1000_NAPI
#define E1000_TX_WEIGHT 64
/* weight of a sort for tx, to avoid endless transmit cleanup */
if (count++ == E1000_TX_WEIGHT) break;
if (count++ == E1000_TX_WEIGHT) {
cleaned = FALSE;
break;
}
#endif
}

Expand Down

0 comments on commit b925a17

Please sign in to comment.