OSDN Git Service

net: dsa: store CPU port pointer in the tree
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 16 May 2017 18:10:33 +0000 (14:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 18:19:12 +0000 (14:19 -0400)
commit8b0d3ea555876533b6aa61479335be2c9bdb47e7
treeca5c67ec93da1a266890f10bab4b09dd29092f32
parent631581bf4609d4c37a70873eb1df89fc7a335d9b
net: dsa: store CPU port pointer in the tree

A dsa_switch_tree instance holds a dsa_switch pointer and a port index
to identify the switch port to which the CPU is attached.

Now that the DSA layer has a dsa_port structure to hold this data, use
it to point the switch CPU port.

This patch simply substitutes s/dst->cpu_switch/dst->cpu_dp->ds/ and
s/dst->cpu_port/dst->cpu_dp->index/.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
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/mv88e6060.c
drivers/net/dsa/qca8k.c
include/net/dsa.h
net/dsa/dsa2.c
net/dsa/legacy.c
net/dsa/slave.c
net/dsa/tag_brcm.c
net/dsa/tag_qca.c
net/dsa/tag_trailer.c