From: Gabor Juhos Date: Mon, 8 Dec 2008 08:31:25 +0000 (+0000) Subject: ag71xx driver: don't refill rx buffers twice X-Git-Tag: reboot~25051 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2a680498b3ca15a05ef471365ae2845dd09ea105;p=openwrt%2Fstaging%2Fchunkeey.git ag71xx driver: don't refill rx buffers twice SVN-Revision: 13544 --- diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c index 0e30c3a300..16cb4ddd39 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c @@ -649,8 +649,6 @@ static int ag71xx_rx_packets(struct ag71xx *ag, int limit) done++; ring->curr++; - if ((ring->curr - ring->dirty) > (AG71XX_RX_RING_SIZE / 4)) - ag71xx_ring_rx_refill(ag); } ag71xx_ring_rx_refill(ag);