Commit d290c121 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau
Browse files

mt76: introduce mt76_txq_id field in mt76_queue_entry



Add mt76_txq_id field to mt76_queue_entry in order to properly
track outstanding frames for mt7615 that relies on a single hw queue

Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent af005f26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ mt76_dma_tx_cleanup(struct mt76_dev *dev, enum mt76_txq_id qid, bool flush)
	while (q->queued && q->tail != last) {
		mt76_dma_tx_cleanup_idx(dev, q, q->tail, &entry);
		if (entry.schedule)
			dev->q_tx[qid].swq_queued--;
			dev->q_tx[entry.qid].swq_queued--;

		q->tail = (q->tail + 1) % q->ndesc;
		q->queued--;
+1 −0
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@ struct mt76_queue_entry {
		struct mt76_txwi_cache *txwi;
		struct mt76u_buf ubuf;
	};
	enum mt76_txq_id qid;
	bool schedule;
};

+1 −0
Original line number Diff line number Diff line
@@ -468,6 +468,7 @@ mt76_txq_send_burst(struct mt76_dev *dev, struct mt76_sw_queue *sq,
	} while (n_frames < limit);

	if (!probe) {
		hwq->entry[idx].qid = sq - dev->q_tx;
		hwq->entry[idx].schedule = true;
		sq->swq_queued++;
	}