Re: [PATCH 2/3] net: mana: Implement set_link_ksettings in ethtool for speed
From: Andrew Lunn
Date: Thu Mar 20 2025 - 09:46:42 EST
On Thu, Mar 20, 2025 at 05:22:20AM -0700, Erni Sri Satya Vennela wrote:
> Add support for ethtool_set_link_ksettings for mana.
> Set speed information of the port using ethtool. This
> feature is not supported by all hardware.
>
> Before the change:
> $ethtool -s enP30832s1 speed 100
> >netlink error: Operation not supported
> $ethtool enP30832s1
> >Settings for enP30832s1:
> Supported ports: [ ]
> Supported link modes: Not reported
Since there are no link modes, what does this speed actually mean?
> After the change:
> $ethtool -s enP30832s1 speed 100
Is
$ethtool -s enP30832s1 speed 42
permitted?
or
$ethtool -s enP30832s1 speed -1
Andrew