Re: [PATCH net-next 15/16] net: dsa: allocate ports on touch

2019-10-20 Thread Florian Fainelli
On 10/19/2019 8:19 PM, Vivien Didelot wrote: > Allocate the struct dsa_port the first time it is accessed with > dsa_port_touch, and remove the static dsa_port array from the > dsa_switch structure. > > Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli -- Florian

[PATCH net-next 15/16] net: dsa: allocate ports on touch

2019-10-19 Thread Vivien Didelot
Allocate the struct dsa_port the first time it is accessed with dsa_port_touch, and remove the static dsa_port array from the dsa_switch structure. Signed-off-by: Vivien Didelot --- include/net/dsa.h | 2 -- net/dsa/dsa2.c| 16 ++-- 2 files changed, 14 insertions(+), 4