Re: [PATCH net-next 04/17] net: dsa: tag_{e}dsa.c: Remove dependency on platform data

2016-06-03 Thread Vivien Didelot
Andrew Lunn writes: > The platform data nr_chips is used when validating a received packet, > to ensure it comes from a know switch chip. The number of possible > switches is limited to DSA_MAX_SWITCHES, so use this as the first > validation step. The new binding allows holes in

Re: [PATCH net-next 04/17] net: dsa: tag_{e}dsa.c: Remove dependency on platform data

2016-06-03 Thread Florian Fainelli
On 06/03/2016 09:44 AM, Andrew Lunn wrote: > The platform data nr_chips is used when validating a received packet, > to ensure it comes from a know switch chip. The number of possible > switches is limited to DSA_MAX_SWITCHES, so use this as the first > validation step. The new binding allows

[PATCH net-next 04/17] net: dsa: tag_{e}dsa.c: Remove dependency on platform data

2016-06-03 Thread Andrew Lunn
The platform data nr_chips is used when validating a received packet, to ensure it comes from a know switch chip. The number of possible switches is limited to DSA_MAX_SWITCHES, so use this as the first validation step. The new binding allows holes in the dst->ds[] array, so also ensure ensure