net: dsa: use ports list to find slave
authorVivien Didelot <vivien.didelot@gmail.com>
Mon, 21 Oct 2019 20:51:18 +0000 (16:51 -0400)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 19:37:06 +0000 (12:37 -0700)
commit7b9a2f4bac68e1dcc77baebd8c1e32d43710bafa
treeb130910e4902b5f0fb5dbc0ef116775f016fc927
parentb96ddf254b09447c6b79632cdc02dae3f2454a82
net: dsa: use ports list to find slave

Use the new ports list instead of iterating over switches and their
ports when looking for a slave device from a given master interface.

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/dsa_priv.h