Skip to content

Commit

Permalink
r8169: align RTL8168e jumbo pcie read request size with vendor driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiner Kallweit authored and Jakub Kicinski committed Jan 12, 2021
1 parent 22fe6b0 commit 2007317
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2007317

Please sign in to comment.