linux/net/dsa
Vivien Didelot 34c09a8916 net: dsa: setup routing table
The *_complete() functions take too much arguments to do only one thing:
they try to fetch the dsa_port structures corresponding to device nodes
under the "link" list property of DSA ports, and use them to setup the
routing table of switches.

This patch simplifies them by providing instead simpler
dsa_{port,switch,tree}_setup_routing_table functions which return a
boolean value, true if the tree is complete.

dsa_tree_setup_routing_table is called inside dsa_tree_setup which
simplifies the switch registering function as well.

A switch's routing table is now initialized before its setup.

This also makes dsa_port_is_valid obsolete, remove it.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-09 09:26:49 +09:00
..
dsa.c net: dsa: move fixed link registration helpers 2017-10-28 18:50:12 +09:00
dsa2.c net: dsa: setup routing table 2017-11-09 09:26:49 +09:00
dsa_priv.h net: dsa: setup and teardown master device 2017-11-09 09:26:49 +09:00
Kconfig dsa: add support for Microchip KSZ tail tagging 2017-05-31 20:56:31 -04:00
legacy.c net: dsa: setup and teardown master device 2017-11-09 09:26:49 +09:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-04 09:26:51 +09:00
master.c net: dsa: setup and teardown master device 2017-11-09 09:26:49 +09:00
port.c net: dsa: move fixed link registration helpers 2017-10-28 18:50:12 +09:00
slave.c net: dsa: constify cpu_dp member of dsa_port 2017-11-09 09:26:49 +09:00
switch.c net: dsa: Remove switchdev dependency from DSA switch notifier chain 2017-08-07 14:48:48 -07:00
tag_brcm.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_dsa.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_edsa.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_ksz.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_lan9303.c net: dsa: lan9303: Adjust indenting 2017-11-08 13:29:06 +09:00
tag_mtk.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_qca.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00
tag_trailer.c net: dsa: rename dsa_master_get_slave 2017-10-18 12:24:33 +01:00