linux/net/dsa
Florian Fainelli 14be36c2c9 net: dsa: Initialize all CPU and enabled ports masks in dsa_ds_parse()
There was no reason for duplicating the code that initializes
ds->enabled_port_mask in both dsa_parse_ports_dn() and
dsa_parse_ports(), instead move this to dsa_ds_parse() which is early
enough before ops->setup() has run.

While at it, we can now make dsa_is_cpu_port() check ds->cpu_port_mask
which is a step towards being multi-CPU port capable.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-04 20:05:15 -04:00
..
dsa2.c net: dsa: Initialize all CPU and enabled ports masks in dsa_ds_parse() 2017-06-04 20:05:15 -04:00
dsa_priv.h net: dsa: Pass dsa_port reference to ethtool setup/restore 2017-06-04 20:05:15 -04:00
dsa.c net: dsa: Pass dsa_port reference to ethtool setup/restore 2017-06-04 20:05:15 -04:00
Kconfig dsa: add support for Microchip KSZ tail tagging 2017-05-31 20:56:31 -04:00
legacy.c net: dsa: Pass dsa_port reference to ethtool setup/restore 2017-06-04 20:05:15 -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: factor skb freeing on xmit 2017-06-01 17:34:56 -04:00
switch.c net: dsa: support cross-chip ageing time 2017-05-24 16:27:47 -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