From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next 00/11] net: dsa: parsing stage Date: Sun, 05 Nov 2017 22:32:39 +0900 (KST) Message-ID: <20171105.223239.1440451038475587932.davem@davemloft.net> References: <20171103230530.996-1-vivien.didelot@savoirfairelinux.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, f.fainelli@gmail.com, andrew@lunn.ch To: vivien.didelot@savoirfairelinux.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:46260 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750872AbdKENcp (ORCPT ); Sun, 5 Nov 2017 08:32:45 -0500 In-Reply-To: <20171103230530.996-1-vivien.didelot@savoirfairelinux.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Vivien Didelot Date: Fri, 3 Nov 2017 19:05:19 -0400 > 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. Series applied, thanks Vivien.