[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250326232929.809a37357877ef3168dfc097@mt-integration.ru>
Date: Wed, 26 Mar 2025 23:29:29 +0500
From: Vitaliy Shevtsov <v.shevtsov@...integration.ru>
To: Andrew Lunn <andrew@...n.ch>
CC: Vladimir Oltean <vladimir.oltean@....com>, Claudiu Manoil
<claudiu.manoil@....com>, Alexandre Belloni <alexandre.belloni@...tlin.com>,
<UNGLinuxDriver@...rochip.com>, "David S. Miller" <davem@...emloft.net>, Eric
Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
<pabeni@...hat.com>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <lvc-project@...uxtesting.org>
Subject: Re: [PATCH] net: dsa: felix: check felix_cpu_port_for_conduit() for
failure
On Wed, 26 Mar 2025 19:22:07 +0100, Andrew Lunn wrote:
> If i'm reading the code correctly you mean ocelot_bond_get_id()
> returns -ENOENT?
>
> If so, you should return the ENOENT, not replace it by EINVAL.
>
> Andrew
Or maybe it's better to just return negative cpu value instead?
This variable will have the correct -ENOENT value in case of failure.
--
Vitaliy Shevtsov <v.shevtsov@...integration.ru>
Powered by blists - more mailing lists