projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0642cf4
)
mt76: testmode: add a limit for queued tx_frames packets
author
Felix Fietkau
<nbd@nbd.name>
Tue, 8 Sep 2020 17:12:22 +0000
(19:12 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Thu, 24 Sep 2020 16:10:17 +0000
(18:10 +0200)
This avoids running out of available tx tokens
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/testmode.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/testmode.c
b/drivers/net/wireless/mediatek/mt76/testmode.c
index f6fd515dfe572a8a63b04f9107012250382f34ae..a38abb6868d5f986162e5954d2eb1a5fef6ace0f 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/testmode.c
+++ b/
drivers/net/wireless/mediatek/mt76/testmode.c
@@
-33,7
+33,8
@@
void mt76_testmode_tx_pending(struct mt76_dev *dev)
spin_lock_bh(&q->lock);
- while (td->tx_pending > 0 && q->queued < q->ndesc / 2) {
+ while (td->tx_pending > 0 && td->tx_queued - td->tx_done < 1000 &&
+ q->queued < q->ndesc / 2) {
int ret;
ret = dev->queue_ops->tx_queue_skb(dev, qid, skb_get(skb), wcid, NULL);