aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/starfire.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/starfire.c')
-rw-r--r--drivers/net/starfire.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c
index d5b9dd842c61..1902f4fabde1 100644
--- a/drivers/net/starfire.c
+++ b/drivers/net/starfire.c
@@ -1503,6 +1503,11 @@ static int __netdev_rx(struct net_device *dev, int *quota)
1503 desc->status = 0; 1503 desc->status = 0;
1504 np->rx_done = (np->rx_done + 1) % DONE_Q_SIZE; 1504 np->rx_done = (np->rx_done + 1) % DONE_Q_SIZE;
1505 } 1505 }
1506
1507 if (*quota == 0) { /* out of rx quota */
1508 retcode = 1;
1509 goto out;
1510 }
1506 writew(np->rx_done, np->base + CompletionQConsumerIdx); 1511 writew(np->rx_done, np->base + CompletionQConsumerIdx);
1507 1512
1508 out: 1513 out: