From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [PATCH] net: phy: b53: switchdev driver for Broadcom BCM53xx switches Date: Wed, 25 Feb 2015 22:56:51 +0100 Message-ID: <20150225215651.GF17992@lunn.ch> References: <1424799727-30946-1-git-send-email-zajec5@gmail.com> <20150224223039.GC1332@gospo.home.greyhouse.net> <54ED017E.6000902@gmail.com> <20150225001534.GB15633@lunn.ch> <54ED19AB.7020003@gmail.com> <20150225140356.GB17992@lunn.ch> <20150225154607.GD1332@gospo.home.greyhouse.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Rafa?? Mi??ecki , Florian Fainelli , "David S. Miller" , Network Development , Jonas Gorski , Hauke Mehrtens , Felix Fietkau , Jiri Pirko To: Andy Gospodarek Return-path: Received: from vps0.lunn.ch ([178.209.37.122]:49579 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932182AbbBYV7z (ORCPT ); Wed, 25 Feb 2015 16:59:55 -0500 Content-Disposition: inline In-Reply-To: <20150225154607.GD1332@gospo.home.greyhouse.net> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Feb 25, 2015 at 10:46:07AM -0500, Andy Gospodarek wrote: > On Wed, Feb 25, 2015 at 03:03:56PM +0100, Andrew Lunn wrote: > [...] > > > > What we don't want is X chip families and Y different ways to > > configure the features. Ideal we want X chip families, and one way to > > configure them all. > > This statement is really my primary concern. There is lots of interest > around hardware offload at this point and it seems like there is a risk > that a lack of consistency can create problems. > > I think these patches are great as they allow for the programming of the > offload hardware (and it has been pointed out that this drastically > increases performance), but one concern I have with this patch (related > to this) is that I'm not sure there is a major need to create netdevs > automatically if there is not the ability to rx/tx actual frames on > these interfaces. Using the broadcom tags, it does seem possible to direct packets out specific ports. So this chip family could use the DSA infrastructure. It should also be possible to perform bridging in hardware. We should push DSA for all chips which fit this model. However, i suspect there are simpler chips which do not support tagging. When somebody tries to submit a driver for such a device, we then need to consider what to do for these devices. Andrew