]> 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)
commit58df421501a965325e84f1f369b3a38bf0eb83e2
tree2913abd416d35f4646fe516e70dfda7f3e82d307
parentfbe54fee281a4d0c26ac47d081aed27de2ade896
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