Re: [PATCH net-next 7/9] net: dsa: define port types

2017-10-26 Thread Vivien Didelot
Hi Jiri, Jiri Pirko writes: >>+ enum { >>+ DSA_PORT_TYPE_UNUSED = 0, >>+ DSA_PORT_TYPE_CPU, >>+ DSA_PORT_TYPE_DSA, >>+ DSA_PORT_TYPE_USER, > > Do you plan to expose this to userspace? How? No. This is a DSA internal data for the moment. Than

Re: [PATCH net-next 7/9] net: dsa: define port types

2017-10-26 Thread Jiri Pirko
Thu, Oct 26, 2017 at 05:22:57PM CEST, vivien.dide...@savoirfairelinux.com wrote: >Introduce an enumerated type for ports, which will be way more explicit >to identify a port type instead of digging into switch port masks. > >A port can be of type CPU, DSA, user, or unused by default. This is a >sta

[PATCH net-next 7/9] net: dsa: define port types

2017-10-26 Thread Vivien Didelot
Introduce an enumerated type for ports, which will be way more explicit to identify a port type instead of digging into switch port masks. A port can be of type CPU, DSA, user, or unused by default. This is a static parsed information that cannot be changed at runtime. Signed-off-by: Vivien Didel