Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119949
b: refs/heads/master
c: 9a3de25
h: refs/heads/master
i:
  119947: 6de2b53
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Dec 16, 2008
1 parent fcc1095 commit fabb995
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb5f133dbc4f04b6388715d364ae5865455166c2
refs/heads/master: 9a3de25544dadab1971847f28f33b1cd0d1770a6
5 changes: 5 additions & 0 deletions trunk/drivers/net/starfire.c
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,11 @@ static int __netdev_rx(struct net_device *dev, int *quota)
desc->status = 0;
np->rx_done = (np->rx_done + 1) % DONE_Q_SIZE;
}

if (*quota == 0) { /* out of rx quota */
retcode = 1;
goto out;
}
writew(np->rx_done, np->base + CompletionQConsumerIdx);

out:
Expand Down

0 comments on commit fabb995

Please sign in to comment.