net: dsa: use dedicated CPU port
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Wed, 20 Sep 2017 16:28:05 +0000 (12:28 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 22:15:58 +0000 (15:15 -0700)
commit0abfd494deefdbab66ac03c1181a614285e7d90c
tree303df476c86a75a7b3d7a162a681039a97014c8c
parent6e617de84e87d626d1e976fc30e1322239fd4d2d
net: dsa: use dedicated CPU port

Each port in DSA has its own dedicated CPU port currently available in
its parent switch's ds->ports[port].cpu_dp. Use it instead of getting
the unique tree CPU port, which will be deprecated soon.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/mt7530.c
drivers/net/dsa/mv88e6060.c
drivers/net/dsa/qca8k.c