Re: [PATCH] net: dsa: drop some VLAs in switch.c
Salvatore Mesoraca <s.mesoraca16@xxxxxxxxx> writes:
> dsa_switch's num_ports is currently fixed to DSA_MAX_PORTS. So we avoid
> 2 VLAs by using DSA_MAX_PORTS instead of ds->num_ports.
>  https://lkml.org/lkml/2018/3/7/621
> Signed-off-by: Salvatore Mesoraca <s.mesoraca16@xxxxxxxxx>
We are in the process to remove hardcoded limits such as DSA_MAX_PORTS
and DSA_MAX_SWITCHES, so we have to stick with ds->num_ports.