[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0e68d17f-02ce-4ed6-8f81-49819a91a214@gmail.com>
Date: Thu, 15 Feb 2024 22:13:53 +0100
From: Heiner Kallweit <hkallweit1@...il.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: Russell King - ARM Linux <linux@...linux.org.uk>,
Paolo Abeni <pabeni@...hat.com>, Jakub Kicinski <kuba@...nel.org>,
David Miller <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] ethtool: check for unsupported modes in EEE
advertisement
On 15.02.2024 15:44, Andrew Lunn wrote:
>> +
>> + if (ethtool_eee_use_linkmodes(&eee)) {
>> + if (linkmode_andnot(tmp, eee.advertised, eee.supported))
>> + return -EINVAL;
>> + } else {
>> + if (eee.advertised_u32 & ~eee.supported_u32)
>> + return -EINVAL;
>> + }
>
> Do we have the necessary parameters to be able to use an extack and
> give user space a useful error message, more than EINVAL?
>
We could at least print the same error message that we have in
genphy_c45_ethtool_set_eee():
GENL_SET_ERR_MSG("At least some EEE link modes are not supported.")
> Andrew
Heiner
Powered by blists - more mailing lists