Re: [PATCH v2] net: dsa: felix: check felix_cpu_port_for_conduit() for failure

From: Vitaliy Shevtsov
Date: Wed Mar 26 2025 - 15:30:43 EST


On Wed, 26 Mar 2025 21:22:59 +0200, Vladimir Oltean wrote:

> Hello Vitaliy,
>
> If the bonding interface has no ports, it is not a DSA conduit.
>
> See the logic in dsa_conduit_changeupper() which, starting from "dev"
> which is known to be a DSA conduit, it looks at info->upper_dev which is
> a LAG device, and calls dsa_conduit_lag_join() when it is linking with
> it. Thus, the LAG device (info->upper_dev) has at least one port: dev.
>
> Also see this comment and walk through the dsa_conduit_lag_leave() path:
>
> /* If the LAG DSA conduit has no ports left, migrate back all
> * user ports to the first physical CPU port
> */
>
> Given the justification provided thus far, I don't see a reason to merge
> this patch. The "somehow it fails" needs to be a bit more clear.

Hello, Vladimir.

Okay then. Pretty clear, thanks.

--
Vitaliy Shevtsov <v.shevtsov@xxxxxxxxxxxxxxxxx>