net: dsa: use ports list to find a port by node
authorVivien Didelot <vivien.didelot@gmail.com>
Mon, 21 Oct 2019 20:51:21 +0000 (16:51 -0400)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 19:37:07 +0000 (12:37 -0700)
commit764b7e624284c3f41bdd15bd4e077d8ec5b8c686
treea26babaa75c2de8c3bca56d5563249c2bf18bd7b
parent86bfb2c1f4337d3306d235f615d35ba8bbbe4650
net: dsa: use ports list to find a port by node

Use the new ports list instead of iterating over switches and their
ports to find a port from a given node.

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