From: Heiner Kallweit Date: Sat, 9 Jan 2021 22:00:04 +0000 (+0100) Subject: r8169: align RTL8168e jumbo pcie read request size with vendor driver X-Git-Tag: v5.15~1802^2~365^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2007317e15cd573c248e8deed30b5c0d622129bc;p=platform%2Fkernel%2Flinux-starfive.git r8169: align RTL8168e jumbo pcie read request size with vendor driver Align behavior with r8168 vendor driver and don't reduce max read request size for RTL8168e in jumbo mode. Signed-off-by: Heiner Kallweit Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index ddcf487..c4c2647 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -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;