net: dsa: use ports list for routing table setup
authorVivien Didelot <vivien.didelot@gmail.com>
Mon, 21 Oct 2019 20:51:20 +0000 (16:51 -0400)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 19:37:06 +0000 (12:37 -0700)
commit86bfb2c1f4337d3306d235f615d35ba8bbbe4650
tree2913abd416d35f4646fe516e70dfda7f3e82d307
parentfb35c60cbacc67a6075fb8e3d98fa348665662fe
net: dsa: use ports list for routing table setup

Use the new ports list instead of accessing the dsa_switch array
of ports when iterating over DSA ports of a switch to set up the
routing table.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
net/dsa/dsa2.c