net: dsa: use ports list to setup multiple master devices
authorVivien Didelot <vivien.didelot@gmail.com>
Mon, 21 Oct 2019 20:51:22 +0000 (16:51 -0400)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 19:37:07 +0000 (12:37 -0700)
commit0cfec588ec210e82e6572d1fb10db195fcc41a87
treede8717f482d24ee200c816a3de91394dc73be35a
parent764b7e624284c3f41bdd15bd4e077d8ec5b8c686
net: dsa: use ports list to setup multiple master devices

Now that we have a potential list of CPU ports, make use of it instead
of only configuring the master device of an unique CPU port.

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