Received: by 10.223.164.221 with SMTP id h29csp354516wrb; Fri, 3 Nov 2017 16:06:41 -0700 (PDT) X-Google-Smtp-Source: ABhQp+T1ARZYiLD83lLVvnvYO54XiWZfIJLQJDs89LrKMRLaAnR+Guhxe59k+Ae8mKm3iOigwli8 X-Received: by 10.101.66.65 with SMTP id d1mr8727108pgq.63.1509750401827; Fri, 03 Nov 2017 16:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509750401; cv=none; d=google.com; s=arc-20160816; b=Lz3WuBBWf70Y/HJHBPbQJPNLgWdI3X2yxmXI719pjFMB6dAQHMgfJT5CTv/XGMK/Px b2jeq9zaABzuX2vs5A75OlUJlljmqVsKrl5gen6/wHgeFCsYqrb81QcUQxNW1fQCstCi +7+O9LZtAjJw/Zpt+oI3yP/aZwA3Z1qt98LGv0QVXn/ZtguJmB2ziohvYiFuzdOy1Cy+ HKJun6Pfuor99FA9SXJU17w74ixKDQXo3VLVvXsIax5MTqlsDxaX4NliTqg3wzVk/X/T jqIVKiFpEzeZQizgh9R2JUD5cByDi3SpwrF0NJVOk5C4RQeirDcfURYz0KEqvjGSQxp5 A+DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Ujo58U0fU9EFMgjdIBNayYd474Ql+hYYK4Xbs74hhWg=; b=xpPmqymCxelPYy6dZ/Io/IkehNEX37jZggLJi36rEI1Yu9827upIZLlU0z0SSNVt7l mtd0Xfo+wfgG6Fd1kjfHrbQ8QBSc3PwkkvJhUwGm9b8U45n6hO+Pnno1UDiQ5UvDiSvi yiZ6dLb2VteuUC03OH2MzbAoGltASX85SHZVt8yjTEKojprfCHZQvvTph6W9gvFmuNmI Z1FCN0I3Gnc1idCbu5rhylKyvGviuqKm2XwrI9rfwKidVIwxUPXyxAMr0v81Ysfs9H9j ZciJHYAwIyaXXhOl/J5bTaszXjiEBDU0wG8j/Ol1WfZuvRP0BaB4ZsjgSlYX292STEtt gTGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si7382095pfd.212.2017.11.03.16.06.29; Fri, 03 Nov 2017 16:06:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756212AbdKCXFt (ORCPT + 92 others); Fri, 3 Nov 2017 19:05:49 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:33232 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752329AbdKCXFr (ORCPT ); Fri, 3 Nov 2017 19:05:47 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 2C4929C2F12; Fri, 3 Nov 2017 19:05:47 -0400 (EDT) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id DQL3xCazf5JE; Fri, 3 Nov 2017 19:05:46 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 8A2179C2F4B; Fri, 3 Nov 2017 19:05:46 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xnk-Ro5JNViL; Fri, 3 Nov 2017 19:05:46 -0400 (EDT) Received: from weeman.mtl.sfl (unknown [192.168.49.192]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 5B3979C2F01; Fri, 3 Nov 2017 19:05:46 -0400 (EDT) From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn , Vivien Didelot Subject: [PATCH net-next 00/11] net: dsa: parsing stage Date: Fri, 3 Nov 2017 19:05:19 -0400 Message-Id: <20171103230530.996-1-vivien.didelot@savoirfairelinux.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Vivien Didelot (11): net: dsa: make switch index unsigned net: dsa: make tree index unsigned net: dsa: simplify tree reference counting net: dsa: get and put tree reference counting net: dsa: provide a find or new tree helper net: dsa: rework switch addition and removal net: dsa: get tree before parsing ports net: dsa: rework switch parsing net: dsa: only check presence of link property net: dsa: add one port parsing function per type net: dsa: resolve tagging protocol at parse time include/net/dsa.h | 4 +- net/dsa/dsa2.c | 323 ++++++++++++++++++++++++++++++------------------------ net/dsa/slave.c | 2 +- 3 files changed, 184 insertions(+), 145 deletions(-) -- 2.14.3 From 1583316249298487932@xxx Mon Nov 06 11:34:01 +0000 2017 X-GM-THRID: 1583309786136211956 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread