r8169: disable ASPM during NAPI poll
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 6 Mar 2023 21:26:47 +0000 (22:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Mar 2023 09:30:41 +0000 (09:30 +0000)
commite1ed3e4d91112027b90c7ee61479141b3f948e6a
tree0d52c7f5090dafd243052b03234abd4644bf91e5
parent49ef7d846d4bd77b0b9f1f801fc765b004690a07
r8169: disable ASPM during NAPI poll

Several chip versions have problems with ASPM, what may result in
rx_missed errors or tx timeouts. The root cause isn't known but
experience shows that disabling ASPM during NAPI poll can avoid
these problems.

Suggested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c