Re: [PATCH net-next 10/16] net: dsa: use ports list to setup default CPU port

From: Florian Fainelli
Date: Sun Oct 20 2019 - 22:47:21 EST




On 10/19/2019 8:19 PM, Vivien Didelot wrote:
> Use the new ports list instead of iterating over switches and their
> ports when setting up the default CPU port. Unassign it on teardown.
>
> Now that we can iterate over multiple CPU ports, remove dst->cpu_dp.
>
> At the same time, provide a better error message for CPU-less tree.
>
> Signed-off-by: Vivien Didelot <vivien.didelot@xxxxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian