[lvc-project] [PATCH] net: dsa: felix: check felix_cpu_port_for_conduit() for failure
Vitaliy Shevtsov
v.shevtsov at mt-integration.ru
Wed Mar 26 21:29:29 MSK 2025
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 at mt-integration.ru>
More information about the lvc-project
mailing list