mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37758 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user