diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-08-12 11:44:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-08-12 11:44:35 +0000 |
commit | f18fd5512ed33f85b42175788a40ec7aaa357be3 (patch) | |
tree | f7d12669ed6b3965468948f6d7fd078d38f0ac3c | |
parent | 81cfb9e5edc246a6fa9f3c85d31135675e2b7119 (diff) | |
download | upstream-f18fd5512ed33f85b42175788a40ec7aaa357be3.tar.gz upstream-f18fd5512ed33f85b42175788a40ec7aaa357be3.tar.bz2 upstream-f18fd5512ed33f85b42175788a40ec7aaa357be3.zip |
ar71xx: ethernet: skip calls to netdev_completed_queue and netif_wake_queue if no tx cleanup was done
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37758
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index bdef8ba4ec..8c62a4d2c9 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -847,6 +847,9 @@ static int ag71xx_tx_packets(struct ag71xx *ag) DBG("%s: %d packets sent out\n", ag->dev->name, sent); + if (!sent) + return; + netdev_completed_queue(ag->dev, sent, bytes_compl); if ((ring->curr - ring->dirty) < (ring->size * 3) / 4) netif_wake_queue(ag->dev); |