]> 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)
commite644e214f39cd690d656faad8cf1ece87688e04b
tree17f6f1fbb92d24d6ff9492901a5812e2e40661f4
parentd8add0a6d3aa5fc43d3c96f080050ec97cb298e6
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