Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166551
b: refs/heads/master
c: 650b5a5
h: refs/heads/master
i:
  166549: 69e1c74
  166547: 3995dc0
  166543: 78ed5cc
v: v3
  • Loading branch information
Jesse Brandeburg authored and David S. Miller committed Sep 27, 2009
1 parent 1c35a7d commit c212652
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 3d6114e71dffb9fb9dedc8569103310c5bbf0296
refs/heads/master: 650b5a5cc34b9fbd38b68e9b8bb1455222fcdb87
12 changes: 4 additions & 8 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3394,17 +3394,13 @@ static irqreturn_t e1000_intr(int irq, void *data)
static int e1000_clean(struct napi_struct *napi, int budget)
{
struct e1000_adapter *adapter = container_of(napi, struct e1000_adapter, napi);
struct net_device *poll_dev = adapter->netdev;
int tx_cleaned = 0, work_done = 0;
int tx_clean_complete = 0, work_done = 0;

adapter = netdev_priv(poll_dev);
tx_clean_complete = e1000_clean_tx_irq(adapter, &adapter->tx_ring[0]);

tx_cleaned = e1000_clean_tx_irq(adapter, &adapter->tx_ring[0]);
adapter->clean_rx(adapter, &adapter->rx_ring[0], &work_done, budget);

adapter->clean_rx(adapter, &adapter->rx_ring[0],
&work_done, budget);

if (!tx_cleaned)
if (!tx_clean_complete)
work_done = budget;

/* If budget not fully consumed, exit the polling mode */
Expand Down

0 comments on commit c212652

Please sign in to comment.