Skip to content

Commit

Permalink
mt76: mt7603: fix up hardware queue index for PS filtered packets
Browse files Browse the repository at this point in the history
Make the queue index match the hardware queue on which they get sent out

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Mar 3, 2019
1 parent 8bfe6d4 commit d13b065
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mt7603/dma.c
Expand Up @@ -47,6 +47,10 @@ mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb)
val = le32_to_cpu(txd[0]);
skb_set_queue_mapping(skb, FIELD_GET(MT_TXD0_Q_IDX, val));

val &= ~(MT_TXD0_P_IDX | MT_TXD0_Q_IDX);
val |= FIELD_PREP(MT_TXD0_Q_IDX, MT_TX_HW_QUEUE_MGMT);
txd[0] = cpu_to_le32(val);

spin_lock_bh(&dev->ps_lock);
__skb_queue_tail(&msta->psq, skb);
if (skb_queue_len(&msta->psq) >= 64) {
Expand Down

0 comments on commit d13b065

Please sign in to comment.