]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf574fdd85c71044eec0093600100f914cdb1c9ea
treefbcd9f21e9eb4581a5ac0145f0b7ab36d27abbcb
parent3c5a6cea4bdf0212ce233532cf1cce754f5cacb8
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