]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: don't advertise pause in jumbo mode
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 14 Apr 2021 08:47:10 +0000 (10:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Apr 2021 20:05:40 +0000 (13:05 -0700)
commit9154eefe0f6a11a1b22d1dddab731535cef3073c
tree09ffd7241b52c8227bb671d3d974bc1bba453ced
parent4fb1c6a80749feb7758547688f2348e558e4760e
r8169: don't advertise pause in jumbo mode

It has been reported [0] that using pause frames in jumbo mode impacts
performance. There's no available chip documentation, but vendor
drivers r8168 and r8125 don't advertise pause in jumbo mode. So let's
do the same, according to Roman it fixes the issue.

[0] https://bugzilla.kernel.org/show_bug.cgi?id=212617

Fixes: 3a4c10c1471b ("r8169: make use of phy_set_asym_pause")
Reported-by: Roman Mamedov <rm+bko@romanrm.net>
Tested-by: Roman Mamedov <rm+bko@romanrm.net>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c