From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F120CC433B4 for ; Wed, 28 Apr 2021 15:26:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B126261407 for ; Wed, 28 Apr 2021 15:26:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239930AbhD1P0r (ORCPT ); Wed, 28 Apr 2021 11:26:47 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:44692 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233594AbhD1P00 (ORCPT ); Wed, 28 Apr 2021 11:26:26 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lbm4D-001Wdq-KL; Wed, 28 Apr 2021 17:25:33 +0200 Date: Wed, 28 Apr 2021 17:25:33 +0200 From: Andrew Lunn To: Vadym Kochan Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Taras Chornyi , linux-kernel@vger.kernel.org, Mickey Rachamim , Vadym Kochan Subject: Re: [PATCH net-next 1/3] net: marvell: prestera: bump supported firmware version to 3.0 Message-ID: References: <20210423155933.29787-1-vadym.kochan@plvision.eu> <20210423155933.29787-2-vadym.kochan@plvision.eu> <20210423170437.GC17656@plvision.eu> <20210428134724.GA405@plvision.eu> <20210428145434.GD9325@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210428145434.GD9325@plvision.eu> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Apr 28, 2021 at 05:54:34PM +0300, Vadym Kochan wrote: > On Wed, Apr 28, 2021 at 04:18:52PM +0200, Andrew Lunn wrote: > > > Regarding the distribution issue when the driver version might be released > > > earlier than the firmware, it looks like that the probability of such > > > case is very low because the distributor of the target Linux system will > > > keep track (actually this is how I see it) that driver and firmware > > > versions are aligned. > > > > You really expect Debian, Redhat, openWRT, SuSE to keep a close eye on > > your kernel driver and update their packages at a time you suggest? > > > > No, I don't think these distros will keep track it because they are > targeted for wider usages). > But I think that NOS specifc distro (which may be based on top of which > you listed) will do it (sure this is just my assumption). Mellanox/Nvidia says you can just run Debian on their switches. Cumulus linux is Debian based. I've been to a few conferences where data center managers have said they want there switches to be just another linux machine they can upgrade whenever they need, nothing special. So that is the TOR segment of the market. If you look at the opposite end of the market, SOHO switches in Linux, very few are actually used as plain boring switches. They are actually embedded into something else. It is an inflight entertainment system which also has a switch. It is a DSL, 4G, and Ethernet switch placed along the side of a railway track. It is inside a bus controlling the passenger information system, announcements, and also a switch. None of these systems are using a NOS. They are using whatever distribution best supports the range of devices and services the box needs to offer. Now, it could be Prestera will only ever be used as a plain boring switch in a box. It never gets used for anything interesting. And since it is a plain boring device, all it needs is a boring NOS? But do you really want to design your driver aound the assumption nobody will do anything interesting with Prestera? > > I'm also not sure your management port argument is valid. This is an > > enterprise switch, not a TOR. It is probably installed in some broom > > cupboard at a satellite facility. The management port is not likely to > > have its own dedicated link back to the central management > > site. Upgrades are going to be applied over the network, and you have > > a real danger of turning it into a remote brick, needing local access > > to restore it. > > I am just trying to clarify if it really worth of it because it will > lead to the hairy code and keep structs for previous FW version. Well, if you decide you really should support two generations of the firmware, you are likely to throw away 3.0.0 and release a 3.0.1 which is backwards compatible to 2.X.X, but adds additional calls for the new functionality. Go look at how other drivers have handled this in the past. Andrew