diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-06-01 19:58:01 -0400 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-06-12 02:40:38 -0400 |
commit | 12e4ab79cd828563dc090d2117dc8626b344bc8f (patch) | |
tree | 84560f508e235d5ea8c8bd9b23933eec8881f54e /drivers/net/mv643xx_eth.c | |
parent | 1e881592e0420dfb5626344a69b15ae268ee98c7 (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/net/mv643xx_eth.c')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 2 |
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 | } |