net: dsa: Introduce dsa_get_cpu_port()
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 13 Jun 2017 20:27:22 +0000 (13:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jun 2017 20:35:03 +0000 (16:35 -0400)
commit3cc9f2573cdcbc6991aa2d1c8e04a4b9190487f8
tree1f4d13a47187b7662ea5369ffe163deee2c79550
parenta29342e739115211615acc33616e547b2d3e0663
net: dsa: Introduce dsa_get_cpu_port()

Introduce a helper function which will return a reference to the CPU
port used in a dsa_switch_tree. Right now this is a singleton, but this
will change once we introduce multi-CPU port support, so ease the
transition by converting the affected code paths.

Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa_priv.h
net/dsa/slave.c
net/dsa/tag_brcm.c
net/dsa/tag_ksz.c
net/dsa/tag_qca.c
net/dsa/tag_trailer.c