diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-08-24 16:37:53 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-26 04:55:18 +0300 |
commit | 70934c7c99ad01778eef83e898df4c624e52492f (patch) | |
tree | 022785dd5b3da29c579b2d975d785f6dcd449b43 /include | |
parent | 215eb9f962091ebaab96be2c18cf5d0f5174a4d6 (diff) | |
download | linux-70934c7c99ad01778eef83e898df4c624e52492f.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phylink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index 789c516c6b4a..7d07f8736431 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -223,6 +223,8 @@ struct phylink_config { unsigned long mac_capabilities; }; +void phylink_limit_mac_speed(struct phylink_config *config, u32 max_speed); + /** * struct phylink_mac_ops - MAC operations structure. * @validate: Validate and update the link configuration. |