]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix performance regression related to PCIe max read request size
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 5 Feb 2020 20:22:46 +0000 (21:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Feb 2020 13:17:44 +0000 (14:17 +0100)
commiteb07e710c475e673461f0b4725998ab12dddb531
tree1a90a91e5bbf703ff318712da22d0899893cd631
parentd854e3d2c1c195cbd8a9cc5b59f39d8863452ed4
r8169: fix performance regression related to PCIe max read request size

It turned out that on low performance systems the original change can
cause lower tx performance. On a N3450-based mini-PC tx performance
in iperf3 was reduced from 950Mbps to ~900Mbps. Therefore effectively
revert the original change, just use pcie_set_readrq() now instead of
changing the PCIe capability register directly.

Fixes: 8458013c81bf ("r8169: remove fiddling with the PCIe max read request size")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c