]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Enable IRQs only if napi_complete_done() is true
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Thu, 9 Mar 2017 23:48:23 +0000 (17:48 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 02:31:28 +0000 (18:31 -0800)
commit79db6378c74effdefddebcddabc07cdf87d2ceb6
tree9ac9dc570d687521034a18d2102157fa34603a1e
parent11195935bf1c6bdcbaab6c27cd9ac18e5ee74e5a
amd-xgbe: Enable IRQs only if napi_complete_done() is true

Depending on the hardware, the amd-xgbe driver may use disable_irq_nosync()
and enable_irq() when an interrupt is received to process Rx packets. If
the napi_complete_done() return value isn't checked an unbalanced enable
for the IRQ could result, generating a warning stack trace.

Update the driver to only enable interrupts if napi_complete_done() returns
true.

Reported-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c