]> git.baikalelectronics.ru Git - kernel.git/commit
net: socionext: clear rx irq correctly
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 11 Oct 2018 12:28:26 +0000 (15:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 19:04:08 +0000 (12:04 -0700)
commit07f0cb2c0b997c5b9ce05533e98c97388698757a
treea3d7e659ba40da4b3aff973ece4e3b40c38262c6
parent99e1eb07e2b3bf0f0d6b9a94914506decb227463
net: socionext: clear rx irq correctly

commit 0b0510b76d55 ("net: socionext: Use descriptor info instead of MMIO reads on Rx")
removed constant mmio reads from the driver and started using a descriptor
field to check if packet should be processed.
This lead the napi rx handler being constantly called while no packets
needed processing and ksoftirq getting 100% cpu usage. Issue one mmio read
to clear the irq correcty after processing packets

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/netsec.c