Re: [RFC 07/20] net: dsa: list ports in switch\\

2016-04-28 Thread Florian Fainelli
On 28/04/16 11:18, Vivien Didelot wrote: > Florian Fainelli writes: > >> On 27/04/16 16:15, Andrew Lunn wrote: >>> On Wed, Apr 27, 2016 at 06:30:04PM -0400, Vivien Didelot wrote: List DSA port structures in their switch structure, so that drivers can iterate on them to retrieve informat

Re: [RFC 07/20] net: dsa: list ports in switch\\

2016-04-28 Thread Vivien Didelot
Florian Fainelli writes: > On 27/04/16 16:15, Andrew Lunn wrote: >> On Wed, Apr 27, 2016 at 06:30:04PM -0400, Vivien Didelot wrote: >>> List DSA port structures in their switch structure, so that drivers can >>> iterate on them to retrieve information such as their ports membership. >> >> And th

Re: [RFC 07/20] net: dsa: list ports in switch\\

2016-04-28 Thread Florian Fainelli
On 27/04/16 16:15, Andrew Lunn wrote: > On Wed, Apr 27, 2016 at 06:30:04PM -0400, Vivien Didelot wrote: >> List DSA port structures in their switch structure, so that drivers can >> iterate on them to retrieve information such as their ports membership. > > And this would be so much easier using a

Re: [RFC 07/20] net: dsa: list ports in switch\\

2016-04-27 Thread Andrew Lunn
On Wed, Apr 27, 2016 at 06:30:04PM -0400, Vivien Didelot wrote: > List DSA port structures in their switch structure, so that drivers can > iterate on them to retrieve information such as their ports membership. And this would be so much easier using a plan array. Andrew > > Signed-off-by:

[RFC 07/20] net: dsa: list ports in switch

2016-04-27 Thread Vivien Didelot
List DSA port structures in their switch structure, so that drivers can iterate on them to retrieve information such as their ports membership. Signed-off-by: Vivien Didelot --- include/net/dsa.h | 9 + net/dsa/dsa.c | 4 2 files changed, 13 insertions(+) diff --git a/include/n