On Wed, 13 Jul 2022 15:07:42 +0100
"Russell King (Oracle)" [off-list ref] wrote:
phylink_get_linkmodes() translates the interface mode into a set of
speed and duplex capabilities which are masked with the MAC modes to
then derive the link modes that are available.
Split out the initial transformation into a new function
phylink_interface_to_caps(), and export it, which will be useful when
setting the maximum fixed link speed in DSA code.
Signed-off-by: Russell King (Oracle) <redacted>
Reviewed-by: Marek Behún <kabel@kernel.org>