Skip to content

Commit

Permalink
mv643xx_eth: be more agressive about RX refill
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lennert Buytenhek committed Jun 12, 2008
1 parent 1e88159 commit 12e4ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 12e4ab7

Please sign in to comment.