Commit 592dac6f authored by Goh, Wei Sheng's avatar Goh, Wei Sheng Committed by sanglipeng
Browse files

net: stmmac: Set MAC's flow control register to reflect current settings

stable inclusion
from stable-v5.10.158
commit d4fc344c0d9c06ea1c1fafa69efac4fed9cd0dd2
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NTXH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d4fc344c0d9c06ea1c1fafa69efac4fed9cd0dd2



--------------------------------

commit cc3d2b5f upstream.

Currently, pause frame register GMAC_RX_FLOW_CTRL_RFE is not updated
correctly when 'ethtool -A <IFACE> autoneg off rx off tx off' command
is issued. This fix ensures the flow control change is reflected directly
in the GMAC_RX_FLOW_CTRL_RFE register.

Fixes: 46f69ded ("net: stmmac: Use resolved link config in mac_link_up()")
Cc: <stable@vger.kernel.org> # 5.10.x
Signed-off-by: default avatarGoh, Wei Sheng <wei.sheng.goh@intel.com>
Signed-off-by: default avatarNoor Azura Ahmad Tarmizi <noor.azura.ahmad.tarmizi@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent cfbb6abe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment