]> 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)
commit4525047dd787c72fc8ec780b2cb932d6fcb8be74
tree80a99ec14173d14095e261890736496170cebe8f
parent0a2204e01d2a1b42334a0f696e62d3e604ac3523
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: 0df474b87548 ("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