mt76: mt7915: optimize mt7915_mac_sta_poll
authorFelix Fietkau <nbd@nbd.name>
Thu, 20 Aug 2020 09:41:16 +0000 (11:41 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Sep 2020 16:10:16 +0000 (18:10 +0200)
commit0f1c443ca9cfa015f205bc003ddecc48531e511b
treefbcd9f21e9eb4581a5ac0145f0b7ab36d27abbcb
parent68e6644bbd6eb1189b36e933b51632887838f825
mt76: mt7915: optimize mt7915_mac_sta_poll

Since DMA completion does not imply tx completion, it makes more sense to
poll for airtime from mt7915_mac_tx_free.
Reduce the runtime of the function by moving all items from dev->sta_poll_list
to a local list once and process any stations that were added afterwards
on the next run

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/dma.c
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h