aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-06-01 19:58:01 -0400
committerLennert Buytenhek <buytenh@wantstofly.org>2008-06-12 02:40:38 -0400
commit12e4ab79cd828563dc090d2117dc8626b344bc8f (patch)
tree84560f508e235d5ea8c8bd9b23933eec8881f54e /drivers
parent1e881592e0420dfb5626344a69b15ae268ee98c7 (diff)
mv643xx_eth: be more agressive about RX refill
During OOM, instead of stopping RX refill when the rx desc ring is not empty, keep trying to refill the ring as long as it is not full instead. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Acked-by: Dale Farnsworth <dale@farnsworth.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/mv643xx_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index 72d3f36ff28..481a2c4ff0c 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -489,7 +489,7 @@ static void rxq_refill(struct rx_queue *rxq)
489 skb_reserve(skb, 2); 489 skb_reserve(skb, 2);
490 } 490 }
491 491
492 if (rxq->rx_desc_count == 0) { 492 if (rxq->rx_desc_count != rxq->rx_ring_size) {
493 rxq->rx_oom.expires = jiffies + (HZ / 10); 493 rxq->rx_oom.expires = jiffies + (HZ / 10);
494 add_timer(&rxq->rx_oom); 494 add_timer(&rxq->rx_oom);
495 } 495 }