WSL2-Linux-Kernel/net/dsa
Vivien Didelot 9520ed8fb8 net: dsa: use cpu_switch instead of ds[0]
Now that the DSA Ethernet switches are true Linux devices, the CPU
switch is not necessarily the first one. If its address is higher than
the second switch on the same MDIO bus, its index will be 1, not 0.

Avoid any confusion by using dst->cpu_switch instead of dst->ds[0].

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-18 16:49:47 -05:00
..
Kconfig net: dsa: select NET_SWITCHDEV 2017-01-09 17:17:30 -05:00
Makefile net: dsa: move HWMON support to its own file 2017-01-07 22:37:22 -05:00
dsa.c net: dsa: use cpu_switch instead of ds[0] 2017-01-18 16:49:47 -05:00
dsa2.c net: dsa: use cpu_switch instead of ds[0] 2017-01-18 16:49:47 -05:00
dsa_priv.h net: dsa: move HWMON support to its own file 2017-01-07 22:37:22 -05:00
hwmon.c net: dsa: Make dsa_switch_ops const 2017-01-09 15:44:50 -05:00
slave.c net: dsa: use cpu_switch instead of ds[0] 2017-01-18 16:49:47 -05:00
tag_brcm.c net: dsa: use cpu_switch instead of ds[0] 2017-01-18 16:49:47 -05:00
tag_dsa.c net: dsa: Add a ports structure and use it in the switch structure 2016-06-04 14:29:53 -07:00
tag_edsa.c net: dsa: Add a ports structure and use it in the switch structure 2016-06-04 14:29:53 -07:00
tag_qca.c net: dsa: use cpu_switch instead of ds[0] 2017-01-18 16:49:47 -05:00
tag_trailer.c net: dsa: use cpu_switch instead of ds[0] 2017-01-18 16:49:47 -05:00