]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11403fb4e4104f6597e37fe26793b6b66e4c4f24
tree2913abd416d35f4646fe516e70dfda7f3e82d307
parente644e214f39cd690d656faad8cf1ece87688e04b
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