From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH net-next 1/4] dt-bindings: net: dsa: add Mediatek MT7530 binding Date: Tue, 14 Mar 2017 12:58:06 +0100 Message-ID: <20170314115806.GS15842@lunn.ch> References: <1489421488-300-1-git-send-email-sean.wang@mediatek.com> <1489421488-300-2-git-send-email-sean.wang@mediatek.com> <928d1178-e04a-3e78-4a7a-36127321a949@gmail.com> <1489474323.1870.47.camel@mtkswgap22> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1489474323.1870.47.camel@mtkswgap22> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Sean Wang Cc: Florian Fainelli , vivien.didelot-4ysUXcep3aM1wj+D4I0NRVaTQe2KTcn/@public.gmane.org, matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org, Landen.Chao-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org, keyhaede-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, objelf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org List-Id: linux-mediatek@lists.infradead.org > By the ways, I have a question which is could current DSA framework > allows managing the fabric designated from "multiple cpu ports" to "user > ports" in any combination in brctl and in other existing commands? > > For example. > > I assume that there are two cpu port called 5, and 6.and there are five > user ports called 0, 1, 2 and 3. and the default fabric on the switch is > mapping from { 5 } <-> { 0, 1, 2, 3 ,4 } where members in the braces I > assumes they also can communicate with each other. > > Is it feasible for changing the fabric into other combinations in the > runtime such as > {5} <-> {0, 1, 2, 3} and {6} <-> {4} > {5} <-> {0, 1, 2} and {6} <-> {3, 4} or > {6} <-> {0, 1} and {6} <-> {2, 3, 4} or > .... > {6} <-> {0, 1, 2, 3 ,4} ? > > After some trace code, I found it seemed that only one cpu port could be > supported via one dsa registration. Hi Sean This is on our TODO list, and getting near the top of Florians list, as far as i understand. A few years ago i did make a proof of concept implementation for this, and the new device tree binding was designed with this in mind. Andrew -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750891AbdCNL6S (ORCPT ); Tue, 14 Mar 2017 07:58:18 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:47253 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744AbdCNL6Q (ORCPT ); Tue, 14 Mar 2017 07:58:16 -0400 Date: Tue, 14 Mar 2017 12:58:06 +0100 From: Andrew Lunn To: Sean Wang Cc: Florian Fainelli , vivien.didelot@savoirfairelinux.com, matthias.bgg@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, davem@davemloft.net, Landen.Chao@mediatek.com, keyhaede@gmail.com, objelf@gmail.com Subject: Re: [PATCH net-next 1/4] dt-bindings: net: dsa: add Mediatek MT7530 binding Message-ID: <20170314115806.GS15842@lunn.ch> References: <1489421488-300-1-git-send-email-sean.wang@mediatek.com> <1489421488-300-2-git-send-email-sean.wang@mediatek.com> <928d1178-e04a-3e78-4a7a-36127321a949@gmail.com> <1489474323.1870.47.camel@mtkswgap22> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1489474323.1870.47.camel@mtkswgap22> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > By the ways, I have a question which is could current DSA framework > allows managing the fabric designated from "multiple cpu ports" to "user > ports" in any combination in brctl and in other existing commands? > > For example. > > I assume that there are two cpu port called 5, and 6.and there are five > user ports called 0, 1, 2 and 3. and the default fabric on the switch is > mapping from { 5 } <-> { 0, 1, 2, 3 ,4 } where members in the braces I > assumes they also can communicate with each other. > > Is it feasible for changing the fabric into other combinations in the > runtime such as > {5} <-> {0, 1, 2, 3} and {6} <-> {4} > {5} <-> {0, 1, 2} and {6} <-> {3, 4} or > {6} <-> {0, 1} and {6} <-> {2, 3, 4} or > .... > {6} <-> {0, 1, 2, 3 ,4} ? > > After some trace code, I found it seemed that only one cpu port could be > supported via one dsa registration. Hi Sean This is on our TODO list, and getting near the top of Florians list, as far as i understand. A few years ago i did make a proof of concept implementation for this, and the new device tree binding was designed with this in mind. Andrew