Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp448320pxb; Tue, 9 Feb 2021 04:40:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxT7XW8yf2QrOhR42S03AiAcsnPSE6pUMGS1hhFtycqaIdl2KhycdjTqIKWpEuLTIJi4rGl X-Received: by 2002:a17:906:8519:: with SMTP id i25mr22683390ejx.106.1612874408999; Tue, 09 Feb 2021 04:40:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612874408; cv=none; d=google.com; s=arc-20160816; b=ApRVVJfYDr64Jwe2BY6WC1tA3EL0kUJqFG23SAwmeSM2Z70PI83BaA5KNI+1rXEGZk b2gh9W9rGOJ0h+2Fm/IFejCyYppAFP3m3kVdyVAVxI1cFPXNEiXR/UheiiUX3oNMbJx7 ys3k1Rvc1bOo0s3QMcdNQCfF1t/RUJol/o4mpM8qRmQD+8Qy1xiNSi8E2PtUJptClBEU iRFjFbCKGqFvPstvyI7KNAa8hXGVTouGxkztov3gWApJ6wBOIL8/ik5oBuCLxWxCCP1s YlbmdVYlXoK2qzFK28AFvd4TeEANFIcMVo5EQzNgXwZmO5EBVzDWgSOdDyNg5nmpE3Vk 26XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=dp2/Yyn+Nvj/ORiR/zBP8Aijq2eR2MP6XOPOex6Vg3A=; b=rc3Fw+MopUY0IFcNi2cgqR34tBQZgxL0PAnSptJ9/fKxRoaty+MToC4DhYJjk0bLAc Uc207gyDopiG5C0D62AQUtdiHchz6EXEa/RovFi23b1NxJhFlRgcD3UlzLDFRB7PUN7v 53eWVxaDEGQPt26Y9raTYH6FpXMaU/NFdlQCwdDEyIBTw3Wv1ynFyF9RFV2KjN0FxWxv 1a63Yopuz10EBsfZf+ZSddumEQa/wEEgidoHRAARrxGdlclOpvJREhJ9ygCTa7kxkco2 wTdYw51XOxse0zMb7dTfwTHW1FUKuoPuP7Br1q66boa1KLg5wdY7/m49Rcc1eS/yhLAV kvKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@waldekranz-com.20150623.gappssmtp.com header.s=20150623 header.b=MuZh103+; 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 a26si8467590edx.311.2021.02.09.04.39.45; Tue, 09 Feb 2021 04:40:08 -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; dkim=pass header.i=@waldekranz-com.20150623.gappssmtp.com header.s=20150623 header.b=MuZh103+; 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 S230163AbhBIMh7 (ORCPT + 99 others); Tue, 9 Feb 2021 07:37:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbhBIMhy (ORCPT ); Tue, 9 Feb 2021 07:37:54 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8428CC061786 for ; Tue, 9 Feb 2021 04:37:13 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id f2so22039285ljp.11 for ; Tue, 09 Feb 2021 04:37:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=waldekranz-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=dp2/Yyn+Nvj/ORiR/zBP8Aijq2eR2MP6XOPOex6Vg3A=; b=MuZh103+OAj6XXbs7B8F3Y7XRPR8d1VUeYirFAeRFIe73Pm6euPoF4Tqzc2CrZv8PD npf5UZo8El2rpmYjUL0T8LxeunY4XkQXJDjzcpX1voZXo9b2BDEwjhGH/aFAhh22U28X 4kM1DliNgWKCJmCrXiJdCzWvjLibeVYptx5mtOS/XvE8RLqf+0Db+oiWcpvLJ6DiPj+x GtactdODwlHW9xI1Z3hWQN7qohjGqGDxQfLwPX2/8+9tytjmfOiQ4r9A6s1X/Cnro51r W1wDSwgzJhjUIss0Fo/BsVF3PN74C15ZpDET/8MVGlon9I0P2NxGLn7vHoOx6pDkm2CZ hztw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=dp2/Yyn+Nvj/ORiR/zBP8Aijq2eR2MP6XOPOex6Vg3A=; b=j+gR1KTmiql3VgSrtIUX0EYmLd/LK4v4IRlvxGSpAvpe1s+NKMJfHiyYN5A0uKNBly ZyoeVl913LJZRMTFw9FiKQwhmJdWE6uIQagCSDtVgQElOcUBpD3Y50nvRTWXRiL3su0z LLvurfCn46RA8MaCr91spDuO7h6CzyivsDH2GvzEdpyE8atuYat3/6UQyNS376774xqV ACdx8Z/BOO478LtYBzCon6L8DTkVjOkVVGCLNDY+Nbk2AkXEF491vNsHSAWGivQ2skwz 09afYP2poceSTr/entdMBJxW+AkWPjRAScr0eyiLaJgzN4s8AOJuAdyBQR9zmdyXWwEu vSOg== X-Gm-Message-State: AOAM532hNh7grNiZ2OSkUucsVNemS3J3bo5zwNlYgQq4TobmHc70b4Kd KpMSwW+FpcREkVjvmdM/yik8bw== X-Received: by 2002:a2e:9bce:: with SMTP id w14mr14249808ljj.120.1612874231943; Tue, 09 Feb 2021 04:37:11 -0800 (PST) Received: from wkz-x280 (static-193-12-47-89.cust.tele2.se. [193.12.47.89]) by smtp.gmail.com with ESMTPSA id t24sm725872ljd.56.2021.02.09.04.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 04:37:11 -0800 (PST) From: Tobias Waldekranz To: Andrew Lunn , Jakub Kicinski Cc: 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 In-Reply-To: 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> Date: Tue, 09 Feb 2021 13:37:10 +0100 Message-ID: <87mtwd4du1.fsf@waldekranz.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 23:30, Andrew Lunn wrote: >> > 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. Indeed, it is a very stark difference in approach. Perhaps a silly example, but it speaks to their developer focus, just the fact that they have an online register reference on GitHub[1] amazed me. What a breath of fresh air! ...and speaks to the general state of things, I guess :) Unsurprisingly the team behind it are also really great to work with! > I really hope that Sparx5 takes off, and displaces Prestera. In terms We are certainly keeping our eyes on it! > of being able to solve issues, we the community can work with > Sparx5. Prestera is too much a black box. I would only add that I still, perhaps naively, hope Marvell will eventually see the benefits of having a truly open driver. > Andrew [1]: https://microchip-ung.github.io/sparx-5_reginfo/reginfo_sparx-5.html