]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: ensure manual pause mode configuration takes effect
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 23 Jun 2020 16:47:29 +0000 (17:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:53:28 +0000 (20:53 -0700)
commitaee7a122c88646dcc79753f000daa9ba52a0eaef
tree80a99ec14173d14095e261890736496170cebe8f
parent97f43013560e504765756a6dee10967f27b140f0
net: phylink: ensure manual pause mode configuration takes effect

We have been relying on link events and mac_config() when the manual
pause modes are changed.  With recent developments, such as moving
the programming of link state to mac_link_up(), this no longer works.

To ensure that we update the MAC, we must generate a link-down followed
by a link-up event; we can do that by setting mac_link_dropped and
triggering a resolve.

Fixes: 029f9aa0e6a4 ("net: phylink: propagate resolved link config via mac_link_up()")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c