Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0335ef5d authored by Yinghai Lu's avatar Yinghai Lu Committed by David S. Miller
Browse files

forcedeth: disable irq at first before schedule rx



Impact: clean up

schedule it later after disable it.

Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79d30a58
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3708,13 +3708,13 @@ static irqreturn_t nv_nic_irq_rx(int foo, void *data)
	u32 events;

	events = readl(base + NvRegMSIXIrqStatus) & NVREG_IRQ_RX_ALL;
	writel(NVREG_IRQ_RX_ALL, base + NvRegMSIXIrqStatus);

	if (events) {
		napi_schedule(&np->napi);
		/* disable receive interrupts on the nic */
		writel(NVREG_IRQ_RX_ALL, base + NvRegIrqMask);
		pci_push(base);
		writel(NVREG_IRQ_RX_ALL, base + NvRegMSIXIrqStatus);
		napi_schedule(&np->napi);
	}
	return IRQ_HANDLED;
}