Thread (44 messages) flat view 44 messages, 4 authors, 2019-10-21

Re: [PATCH net-next 05/16] net: dsa: use ports list to setup switches

From: Vivien Didelot <hidden>
Date: 2019-10-21 19:37:56
Also in: lkml

On Mon, 21 Oct 2019 14:49:02 +0200, Andrew Lunn [off-list ref] wrote:
On Sun, Oct 20, 2019 at 07:42:15PM -0700, Florian Fainelli wrote:
quoted

On 10/19/2019 8:19 PM, Vivien Didelot wrote:
quoted
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?
I agree, it looks noise. Maybe change them to _dbg()?
 
quoted
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?
I do think it needs to identify both the dst and the ds.
It is noise indeed and doesn't add much value, I'll remove them.


Thanks,
Vivien
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help