Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp40176pxb; Mon, 8 Feb 2021 14:33:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1pLO12xm/Rjsz0X8c7T0A/hSfxTvNtfFaEuhyH5orurOEKrDrVYgif+xR4FToqRTHlkkK X-Received: by 2002:a05:6402:617:: with SMTP id n23mr19817480edv.257.1612823610882; Mon, 08 Feb 2021 14:33:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612823610; cv=none; d=google.com; s=arc-20160816; b=PivpjFpfhtXRxsFQv8WUn8jq8A3neB2b0+Y7VI8MdvqfCqioZUYi6oz+TK6V/ypWAY K9/tNa6cAg+EkxkHMSUwYwubKbXJcsPWz+B56tycUcuRDCt1maQzZQyUknZNo53Ic5wJ i/yy5bI+Yb5pL4vvMSDQ8DkCIaQVeNA4IpZgfPOc6jAmX7ZqEhqX1gJQWzoLFsY+uZ2V bFmFIPQMSb4fU5NYSA2et5VoQLRw4xQln7Xv+F7xQMo4B+XT1iBUg/foG8aiWrVZ+0+/ sldXCu8WkTv8bCNh0igvjCA+z9Ce7it3wXnM3LXbSI1frZuwhCgrhLAOuq+qkMCfwMHG iKCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=EAkww7Esm4TJn/2oGoAjQGvFpTGfTk7hLujTpuzVAVM=; b=MnlFbwl2rj4NDRZLbzfwe9ZAYUY2mne6JcggkgERqPZdYunW5H67h82rBYVidq8OS8 J06gdEck0CxKg0iYI5+2XWTAxPPHshhvY6o/e/DjNws0GjftOQhDzQdswXzuE1tfkTEL eFHm04ctdjycCq0V/aHi5nZUx21g9EX4eI6Lvy+XgK5mgbW1N0izTU00HxbuKuhurPfO kBgaxWFKqAE51P0R5dsT+MfQrlWInWQ6ddyGW6NRG9y9q2zChNeP8v6FAOW2IcRX/CDC 8nkCppsDpqJoDw2vgVoslhIDSeO0n/toFRmjEJWR15K1JyZ2+/mGxecfYLBEOqwOe3BE rdBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si13937100ejd.310.2021.02.08.14.33.07; Mon, 08 Feb 2021 14:33:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231666AbhBHWbg (ORCPT + 99 others); Mon, 8 Feb 2021 17:31:36 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:56466 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbhBHWbc (ORCPT ); Mon, 8 Feb 2021 17:31:32 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1l9F3M-004x80-Hv; Mon, 08 Feb 2021 23:30:44 +0100 Date: Mon, 8 Feb 2021 23:30:44 +0100 From: Andrew Lunn To: Jakub Kicinski Cc: Tobias Waldekranz , Vadym Kochan , "David S. Miller" , netdev@vger.kernel.org, Mickey Rachamim , linux-kernel@vger.kernel.org, Vladimir Oltean Subject: Re: [PATCH net-next 5/7] net: marvell: prestera: add LAG support Message-ID: References: <20210203165458.28717-1-vadym.kochan@plvision.eu> <20210203165458.28717-6-vadym.kochan@plvision.eu> <20210204211647.7b9a8ebf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <87v9b249oq.fsf@waldekranz.com> <20210208130557.56b14429@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210208130557.56b14429@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > I took a quick look at it, and what I found left me very puzzled. I hope > > you do not mind me asking a generic question about the policy around > > switchdev drivers. If someone published a driver using something similar > > to the following configuration flow: > > > > iproute2 daemon(SDK) > > | ^ | > > : : : user/kernel boundary > > v | | > > netlink | | > > | | | > > v | | > > driver | | > > | | | > > '--------' | > > : kernel/hardware boundary > > v > > ASIC > > > > My guess is that they would be (rightly IMO) told something along the > > lines of "we do not accept drivers that are just shims for proprietary > > SDKs". > > > > But it seems like if that same someone has enough area to spare in their > > ASIC to embed a CPU, it is perfectly fine to run that same SDK on it, > > call it "firmware", and then push a shim driver into the kernel tree. > > > > iproute2 > > | > > : user/kernel boundary > > v > > netlink > > | > > v > > driver > > | > > | > > : kernel/hardware boundary > > '-------------. > > v > > daemon(SDK) > > | > > v > > ASIC > > > > What have we, the community, gained by this? In the old world, the > > vendor usually at least had to ship me the SDK in source form. Having > > seen the inside of some of those sausage factories, they are not the > > kinds of code bases that I want at the bottom of my stack; even less so > > in binary form where I am entirely at the vendor's mercy for bugfixes. > > > > We are talking about a pure Ethernet fabric here, so there is no fig > > leaf of "regulatory requirements" to hide behind, in contrast to WiFi > > for example. > > > > Is it the opinion of the netdev community that it is OK for vendors to > > use this model? What i find interesting is the comparison between Microchip Sparx5 and Marvell Prestera. They offer similar capabilities. Both have a CPU on them. As you say Marvell is pushing their SDK into this CPU, black box. Microchip decided to open everything, no firmware, the kernel driver is directly accessing the hardware, the datasheet is available, and microchip engineers are here on the list. I really hope that Sparx5 takes off, and displaces Prestera. In terms of being able to solve issues, we the community can work with Sparx5. Prestera is too much a black box. Andrew