From: David S. Miller Date: Sun, 5 Nov 2017 13:31:39 +0000 (+0900) Subject: Merge branch 'dsa-parsing-stage' X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6c49b5e26004eef86e7a47093a53be290554351c;p=openwrt%2Fstaging%2Fblogic.git Merge branch 'dsa-parsing-stage' Vivien Didelot says: ==================== net: dsa: parsing stage When registering a DSA switch, there is basically two stages. The first stage is the parsing of the switch device, from either device tree or platform data. It fetches the DSA tree to which it belongs, and validates its ports. The switch device is then added to the tree, and the second stage is called if this was the last switch of the tree. The second stage is the setup of the tree, which validates that the tree is complete, sets up the routing tables, the default CPU port for user ports, sets up the switch drivers and finally the master interfaces, which makes the whole switch fabric functional. This patch series covers the first parsing stage. It fixes the type of the switch and tree indexes to unsigned int, simplifies the tree reference counting and the switch and CPU ports parsing. ==================== Signed-off-by: David S. Miller --- 6c49b5e26004eef86e7a47093a53be290554351c