]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit453a77894efa4d9b6ef9644d74b9419c47ac427c
tree09ffd7241b52c8227bb671d3d974bc1bba453ced
parent16756d3e77ad58cd07e36cbed724aa13ae5a0278
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: 9cf9b84cc701 ("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