mt76: introduce mt76_sw_queue data structure
Introduce mt76_sw_queue data structure in order to support new chipsets (e.g. mt7615) that have a shared hardware queue for all traffic identifiers. mt76_sw_queue will be used to track outstanding packets Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:

committed by
Felix Fietkau

parent
e226ba2e35
commit
af005f2605
@@ -386,10 +386,12 @@ EXPORT_SYMBOL_GPL(mt76_rx);
|
||||
|
||||
static bool mt76_has_tx_pending(struct mt76_dev *dev)
|
||||
{
|
||||
struct mt76_queue *q;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(dev->q_tx); i++) {
|
||||
if (dev->q_tx[i].queued)
|
||||
q = dev->q_tx[i].q;
|
||||
if (q && q->queued)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user