Re: [net-next PATCH v10 2/9] net: dsa: realtek: rtl8365mb: reject unsupported topologies

From: Luiz Angelo Daros de Luca

Date: Sat May 30 2026 - 07:13:10 EST


>
> Explicitly enforce the presence of a CPU port (-EINVAL) and reject DSA
> cascade links (-EOPNOTSUPP) during setup to prevent silent failures.
>
> These topologies were already non-functional. Without a CPU port, the
> driver does not activate CPU tagging. Additionally, the switch hardware
> was not designed to be cascaded, and DSA links never worked because
> CPU tagging is not enabled for them.
>
> Signed-off-by: Luiz Angelo Daros de Luca <luizluca@xxxxxxxxx>

This patch was extracted from the next patch in the series. I wasn't
entirely sure if I should carry over the Reviewed-by: tags to this new
patch. So, even though the final code is identical to how it was
before, I intentionally dropped them just to be safe.

Regards,

Luiz