提交 3e0705ac 编写于 作者: F Felix Fietkau

mt76: avoid enabling interrupt if NAPI poll is still pending

if napi_complete() returns false, it means that polling is still pending.
Interrupts should not fire until the polling is no longer scheduled
Signed-off-by: NFelix Fietkau <nbd@nbd.name>
上级 e7aaa72f
...@@ -539,10 +539,8 @@ mt76_dma_rx_poll(struct napi_struct *napi, int budget) ...@@ -539,10 +539,8 @@ mt76_dma_rx_poll(struct napi_struct *napi, int budget)
rcu_read_unlock(); rcu_read_unlock();
if (done < budget) { if (done < budget && napi_complete(napi))
napi_complete(napi);
dev->drv->rx_poll_complete(dev, qid); dev->drv->rx_poll_complete(dev, qid);
}
return done; return done;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册