From: Lennert Buytenhek Date: Sun, 1 Jun 2008 23:58:01 +0000 (+0200) Subject: mv643xx_eth: be more agressive about RX refill X-Git-Tag: v2.6.27-rc1~969^2~289^2~12^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=12e4ab79cd828563dc090d2117dc8626b344bc8f;p=linux-2.6-omap-h63xx.git 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 Acked-by: Dale Farnsworth --- 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) 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); }