Commit 3e0705ac authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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: default avatarFelix Fietkau <nbd@nbd.name>
parent e7aaa72f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -539,10 +539,8 @@ mt76_dma_rx_poll(struct napi_struct *napi, int budget)

	rcu_read_unlock();

	if (done < budget) {
		napi_complete(napi);
	if (done < budget && napi_complete(napi))
		dev->drv->rx_poll_complete(dev, qid);
	}

	return done;
}