net: phylink: add phylink_limit_mac_speed()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 24 Aug 2023 13:37:53 +0000 (14:37 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 26 Aug 2023 01:55:18 +0000 (18:55 -0700)
commit70934c7c99ad01778eef83e898df4c624e52492f
tree022785dd5b3da29c579b2d975d785f6dcd449b43
parent215eb9f962091ebaab96be2c18cf5d0f5174a4d6
net: phylink: add phylink_limit_mac_speed()

Add a function which can be used to limit the phylink MAC capabilities
to an upper speed limit.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1qZAX3-005pTi-K1@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c
include/linux/phylink.h