]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: use ports list to setup switches
authorVivien Didelot <vivien.didelot@gmail.com>
Mon, 21 Oct 2019 20:51:19 +0000 (16:51 -0400)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 19:37:06 +0000 (12:37 -0700)
commitfbe54fee281a4d0c26ac47d081aed27de2ade896
tree17f6f1fbb92d24d6ff9492901a5812e2e40661f4
parent3224e1ede3d80cb8ba8edff8ea5d7f77b4536238
net: dsa: use ports list to setup switches

Use the new ports list instead of iterating over switches and their
ports when setting up the switches and their ports.

At the same time, provide setup states and messages for ports and
switches as it is done for the trees.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
include/net/dsa.h
net/dsa/dsa2.c