Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7275
b: refs/heads/master
c: b1dd9ca
h: refs/heads/master
i:
  7273: f4c0c58
  7271: c801287
v: v3
  • Loading branch information
Dale Farnsworth authored and Jeff Garzik committed Sep 5, 2005
1 parent 7fbd3c7 commit adb4145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: e797637f4c1cbcecb2d8f5cfa05b161da1f0b802
refs/heads/master: b1dd9ca177bd2ff5260376dd024dd43eb4631dc7
6 changes: 2 additions & 4 deletions trunk/drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,15 +412,13 @@ static int mv643xx_eth_receive_queue(struct net_device *dev)
struct pkt_info pkt_info;

#ifdef MV643XX_NAPI
while (eth_port_receive(mp, &pkt_info) == ETH_OK && budget > 0) {
while (budget-- > 0 && eth_port_receive(mp, &pkt_info) == ETH_OK) {
#else
while (eth_port_receive(mp, &pkt_info) == ETH_OK) {
#endif
mp->rx_ring_skbs--;
received_packets++;
#ifdef MV643XX_NAPI
budget--;
#endif

/* Update statistics. Note byte count includes 4 byte CRC count */
stats->rx_packets++;
stats->rx_bytes += pkt_info.byte_cnt;
Expand Down

0 comments on commit adb4145

Please sign in to comment.