Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194782
b: refs/heads/master
c: d951f72
h: refs/heads/master
v: v3
  • Loading branch information
Tom Herbert authored and David S. Miller committed May 6, 2010
1 parent 8169021 commit 56b8380
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 0294b6f78f2dd9d94fa0deec28e8845a7fb43ac3
refs/heads/master: d951f7250305adaea5f25398b70023681183d0cb
5 changes: 3 additions & 2 deletions trunk/drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -3564,14 +3564,15 @@ static int nv_napi_poll(struct napi_struct *napi, int budget)
tx_work += nv_tx_done(dev, np->tx_ring_size);
spin_unlock_irqrestore(&np->lock, flags);

rx_count = nv_rx_process(dev, budget);
rx_count = nv_rx_process(dev, budget - rx_work);
retcode = nv_alloc_rx(dev);
} else {
spin_lock_irqsave(&np->lock, flags);
tx_work += nv_tx_done_optimized(dev, np->tx_ring_size);
spin_unlock_irqrestore(&np->lock, flags);

rx_count = nv_rx_process_optimized(dev, budget);
rx_count = nv_rx_process_optimized(dev,
budget - rx_work);
retcode = nv_alloc_rx_optimized(dev);
}
} while (retcode == 0 &&
Expand Down

0 comments on commit 56b8380

Please sign in to comment.