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

2019-10-20 Thread Florian Fainelli
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

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

2019-10-19 Thread Vivien Didelot
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