[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e7b6082c-6c41-43c3-85e3-a2d75a44c967@lunn.ch>
Date: Thu, 15 Feb 2024 15:44:34 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Heiner Kallweit <hkallweit1@...il.com>
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
> +
> + 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?
Andrew
Powered by blists - more mailing lists