Re: [PATCH net-next 1/2] net: dsa: store CPU switch structure in the tree

2017-01-18 Thread David Miller
From: Vivien Didelot Date: Tue, 17 Jan 2017 20:41:38 -0500 > Store a dsa_switch pointer to the CPU switch in the tree instead of only > its index. This avoids the need to initialize it to -1. > > Signed-off-by: Vivien Didelot

Re: [PATCH net-next 1/2] net: dsa: store CPU switch structure in the tree

2017-01-18 Thread Florian Fainelli
On 01/17/2017 05:41 PM, Vivien Didelot wrote: > Store a dsa_switch pointer to the CPU switch in the tree instead of only > its index. This avoids the need to initialize it to -1. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli

Re: [PATCH net-next 1/2] net: dsa: store CPU switch structure in the tree

2017-01-18 Thread Andrew Lunn
On Tue, Jan 17, 2017 at 08:41:38PM -0500, Vivien Didelot wrote: > Store a dsa_switch pointer to the CPU switch in the tree instead of only > its index. This avoids the need to initialize it to -1. Hi Vivien A cover note would be nice. I expect these patches are going to clash with Florians

[PATCH net-next 1/2] net: dsa: store CPU switch structure in the tree

2017-01-17 Thread Vivien Didelot
Store a dsa_switch pointer to the CPU switch in the tree instead of only its index. This avoids the need to initialize it to -1. Signed-off-by: Vivien Didelot --- include/net/dsa.h | 8 net/dsa/dsa.c | 7 +++ net/dsa/dsa2.c| 5 ++--- 3