]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix issue with forced threading in combination with shared interrupts
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 29 Oct 2020 09:18:53 +0000 (10:18 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Oct 2020 18:49:04 +0000 (11:49 -0700)
commit33b0fb77f38416d27aa276d1c20ff25f5457196a
tree4242cb57462ed4b69b8a90e336b3063a9e5fc7fc
parent019727f41ccfaa89a395e9f2d163043e8ced7d1c
r8169: fix issue with forced threading in combination with shared interrupts

As reported by Serge flag IRQF_NO_THREAD causes an error if the
interrupt is actually shared and the other driver(s) don't have this
flag set. This situation can occur if a PCI(e) legacy interrupt is
used in combination with forced threading.
There's no good way to deal with this properly, therefore we have to
remove flag IRQF_NO_THREAD. For fixing the original forced threading
issue switch to napi_schedule().

Fixes: bb3881a7f0b5 ("r8169: fix operation under forced interrupt threading")
Link: https://www.spinics.net/lists/netdev/msg694960.html
Reported-by: Serge Belyshev <belyshev@depni.sinp.msu.ru>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Serge Belyshev <belyshev@depni.sinp.msu.ru>
Link: https://lore.kernel.org/r/b5b53bfe-35ac-3768-85bf-74d1290cf394@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c