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 switches and their ports. > > At the same time, provide setup states and messages for ports and > switches as it is done for the trees. Humm, that becomes quite noisy, would it make sense to have those messages only for non-user ports that are not already visible because they do not have a net_device? If you have multiple switches in a fabric, it might be convenient to use dev_info(dp->ds->dev, ...) to print your message so you can clearly identify which port belongs to which switch, which becomes even more important as it is all flattened thanks to lists now. What do you think? -- Florian
- [PATCH net-next 14/16] net: dsa: sja1105: register switch... Vivien Didelot
- [PATCH net-next 13/16] net: dsa: mv88e6xxx: use ports lis... Vivien Didelot
- Re: [PATCH net-next 13/16] net: dsa: mv88e6xxx: use ... Florian Fainelli
- [PATCH net-next 12/16] net: dsa: mv88e6xxx: use ports lis... Vivien Didelot
- Re: [PATCH net-next 12/16] net: dsa: mv88e6xxx: use ... Florian Fainelli
- [PATCH net-next 15/16] net: dsa: allocate ports on touch Vivien Didelot
- Re: [PATCH net-next 15/16] net: dsa: allocate ports ... Florian Fainelli
- [PATCH net-next 16/16] net: dsa: remove dsa_switch_alloc ... Vivien Didelot
- Re: [PATCH net-next 16/16] net: dsa: remove dsa_swit... Florian Fainelli
- [PATCH net-next 05/16] net: dsa: use ports list to setup ... Vivien Didelot
- Re: [PATCH net-next 05/16] net: dsa: use ports list ... Florian Fainelli
- Re: [PATCH net-next 05/16] net: dsa: use ports l... Andrew Lunn
- Re: [PATCH net-next 05/16] net: dsa: use por... Vivien Didelot
- [PATCH net-next 08/16] net: dsa: use ports list to setup ... Vivien Didelot
- Re: [PATCH net-next 08/16] net: dsa: use ports list ... Florian Fainelli
- [PATCH net-next 07/16] net: dsa: use ports list to find a... Vivien Didelot
- Re: [PATCH net-next 07/16] net: dsa: use ports list ... Florian Fainelli
- [PATCH net-next 10/16] net: dsa: use ports list to setup ... Vivien Didelot
- Re: [PATCH net-next 10/16] net: dsa: use ports list ... Florian Fainelli
- [PATCH net-next 01/16] net: dsa: use dsa_to_port helper e... Vivien Didelot

