linux_dsm_epyc7002/net/dsa
Florian Fainelli 6d3c8c0dd8 net: dsa: Remove master_netdev and use dst->cpu_dp->netdev
In preparation for supporting multiple CPU ports, remove
dst->master_netdev and ds->master_netdev and replace them with only one
instance of the common object we have for a port: struct
dsa_port::netdev. ds->master_netdev is currently write only and would be
helpful in the case where we have two switches, both with CPU ports, and
also connected within each other, which the multi-CPU port patch series
would address.

While at it, introduce a helper function used in net/dsa/slave.c to
immediately get a reference on the master network device called
dsa_master_netdev().

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>
2017-06-13 16:35:02 -04:00
..
dsa2.c net: dsa: Remove master_netdev and use dst->cpu_dp->netdev 2017-06-13 16:35:02 -04:00
dsa_priv.h net: dsa: Remove master_netdev and use dst->cpu_dp->netdev 2017-06-13 16:35:02 -04:00
dsa.c net: dsa: Remove master_netdev and use dst->cpu_dp->netdev 2017-06-13 16:35:02 -04:00
Kconfig dsa: add support for Microchip KSZ tail tagging 2017-05-31 20:56:31 -04:00
legacy.c net: dsa: Remove master_netdev and use dst->cpu_dp->netdev 2017-06-13 16:35:02 -04:00
Makefile dsa: add support for Microchip KSZ tail tagging 2017-05-31 20:56:31 -04:00
port.c net: dsa: support cross-chip ageing time 2017-05-24 16:27:47 -04:00
slave.c net: dsa: Remove master_netdev and use dst->cpu_dp->netdev 2017-06-13 16:35:02 -04:00
switch.c net: dsa: add CPU and DSA ports as VLAN members 2017-06-08 11:43:32 -04:00
tag_brcm.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_dsa.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_edsa.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_ksz.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_lan9303.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_mtk.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_qca.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
tag_trailer.c net: dsa: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00