mt76: attempt to free up more room when filling the tx queue
authorFelix Fietkau <nbd@nbd.name>
Sat, 21 Nov 2020 17:23:35 +0000 (18:23 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 4 Dec 2020 13:31:16 +0000 (14:31 +0100)
commit9716ef046b46a6426b2a11301ea5232fc8cdce63
treebf3ebcb4e5375b34f064a5856af46ffedf37d28d
parent5342758d5522dbf8081360be9c8545bac84b80f3
mt76: attempt to free up more room when filling the tx queue

Run dma cleanup immediately if the queue is almost full, instead of waiting
for the tx interrupt

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