]> err.no Git - linux-2.6/commitdiff
mv643xx_eth: be more agressive about RX refill
authorLennert Buytenhek <buytenh@wantstofly.org>
Sun, 1 Jun 2008 23:58:01 +0000 (01:58 +0200)
committerLennert Buytenhek <buytenh@wantstofly.org>
Thu, 12 Jun 2008 06:40:38 +0000 (08:40 +0200)
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>
drivers/net/mv643xx_eth.c

index 72d3f36ff284695b626ec86e06796ce06df3cdd5..481a2c4ff0cd1efccc851867a0dbf8400aa0cc50 100644 (file)
@@ -489,7 +489,7 @@ static void rxq_refill(struct rx_queue *rxq)
                skb_reserve(skb, 2);
        }
 
-       if (rxq->rx_desc_count == 0) {
+       if (rxq->rx_desc_count != rxq->rx_ring_size) {
                rxq->rx_oom.expires = jiffies + (HZ / 10);
                add_timer(&rxq->rx_oom);
        }