]> git.baikalelectronics.ru Git - kernel.git/commitdiff
r8169: align RTL8168e jumbo pcie read request size with vendor driver
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 9 Jan 2021 22:00:04 +0000 (23:00 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Jan 2021 00:49:29 +0000 (16:49 -0800)
Align behavior with r8168 vendor driver and don't reduce max read
request size for RTL8168e in jumbo mode.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c

index ddcf4870f0256cb98d155052bad81d08cc26de8b..c4c2647c54e733e4825e6034960177d5b3d7a79c 100644 (file)
@@ -2368,12 +2368,10 @@ static void rtl_jumbo_config(struct rtl8169_private *tp)
                        r8168dp_hw_jumbo_disable(tp);
                break;
        case RTL_GIGA_MAC_VER_31 ... RTL_GIGA_MAC_VER_33:
-               if (jumbo) {
-                       pcie_set_readrq(tp->pci_dev, 512);
+               if (jumbo)
                        r8168e_hw_jumbo_enable(tp);
-               } else {
+               else
                        r8168e_hw_jumbo_disable(tp);
-               }
                break;
        default:
                break;