mt76: retry rx polling as long as there is budget left
authorFelix Fietkau <nbd@nbd.name>
Wed, 24 Jan 2018 15:19:10 +0000 (16:19 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 26 Jan 2018 09:18:31 +0000 (11:18 +0200)
commit2b4307f538ab31954e9b6d4ff64b6cf5b33196e1
tree3e90a85a9631296b3cba32ecb9add6f36477fa7c
parentf7a611707b2755e2658a80c96e276e9506e674c4
mt76: retry rx polling as long as there is budget left

Sending frames to mac80211 needs time, which could allow for more rx
packets to end up in the DMA ring. Retry polling until there are no more
frames left. Improves rx latency under load.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/dma.c