[PATCH RFC net-next v2 1/6] net: phylink: split out and export interface to caps translation

Marek Behún kabel at kernel.org
Wed Jul 13 07:44:00 PDT 2022


On Wed, 13 Jul 2022 15:07:42 +0100
"Russell King (Oracle)" <rmk+kernel at armlinux.org.uk> 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) <rmk+kernel at armlinux.org.uk>

Reviewed-by: Marek Behún <kabel at kernel.org>



More information about the linux-arm-kernel mailing list