Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4308853pxb; Mon, 8 Feb 2021 13:06:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyD0pBOKy42q+/lPp4uMF38OxYEdHP8f+5fDrq2AFzTGAbNe5Idx+3mFCwda7aALkcoNce X-Received: by 2002:a05:6402:2690:: with SMTP id w16mr19244132edd.304.1612818407612; Mon, 08 Feb 2021 13:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612818407; cv=none; d=google.com; s=arc-20160816; b=WWFKzc1wChKZjPWqL6FRede/893CJ3FBVM1ci5IlFn54tl7WtlzMbslmrJDQv3/bno nbG3jcOX748XtnZboyfGaf3XFj0GCnkYgh3WBWwDM/RiuHGxJ4X5B0ENoV3R8474pK4O LlJnOehmjJuV7b6CXzGBeRBI6RZrO/Ck+p/1U7d5xPXqruO/oTzODEW0OuHrOtQ17YHX 7wpY7tqonkADB35sSHzl/gE+yUZqcuSYBO24nOU7pF+06jh+qrSlkxhxeMxPB1POIWEL vEQlRB1ou31epmB8tFPQJQqjdjN2tAyulluPsTEDLNfnYq/SHXnasjc0sVqBSii0MxJW eSrw== 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=B42YBEHueO+TiKJPwlH3QcuzKXrvjRANaoetpGdPu2o=; b=JEB9jo575rLFZAI0spwqHmx+vhIz6/I7N53qfyTiKHbZyHSa1ihJfA/8hr0VewwRbW TEmT/B+wfNsfjZ3ZJMiU7mbKEV7If3/T+Gv2w6yZtj8SMjKj3thul3RJWAgPNjwFnp5N kqJ/1OZkokY2FtE3IgJ6YJEexnfPUuug1VNcZsWH/2/D8Hxv8wlcoOI6/fJK4FyH2Xzo RRB9feRm3fJ8vEJfonrMbYJDlhF8ROOG2OfgTy+Vy707kxF8zEXzzX+D5s0nQfqEidh3 4CT5auFwbsZRrAVt013RY4uGZVOPrML0/MrcazEQj3RFo8EzLeqDy51MPQr6n9DXafgT dlzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@waldekranz-com.20150623.gappssmtp.com header.s=20150623 header.b=TAdJ76BV; 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 kk2si6308683ejc.613.2021.02.08.13.06.22; Mon, 08 Feb 2021 13:06:47 -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=TAdJ76BV; 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 S233779AbhBHVFR (ORCPT + 99 others); Mon, 8 Feb 2021 16:05:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236273AbhBHTzO (ORCPT ); Mon, 8 Feb 2021 14:55:14 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C41C7C06178B for ; Mon, 8 Feb 2021 11:54:33 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id b2so24345891lfq.0 for ; Mon, 08 Feb 2021 11:54:33 -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=B42YBEHueO+TiKJPwlH3QcuzKXrvjRANaoetpGdPu2o=; b=TAdJ76BV23ICDbNuOmxCzgIwyG01RVgOooVctuSyzxPve0+yjhxuOHb7SHObee0bA5 UgSup1pGvAJacNwApQM1iA9f733+NuWGjOQvETscOYP6mermhnZMdrTo2uIYX3Dx8GVH Kuag6SYhakFEd6dfW1Pf+0pS7HJIfaMtdXTzaFDtQbxLPqjKOb6JnamkVAUcgQGBYysz VyTLJMp+7WR4n753GsVdJLXDb5W7DTFTQUSnJF1goGFgrcUDz00frgna0Q7WuOO0MXEj q82NaczB25fvYUu/9YMyVRm5zkKU33+c+fF4cF4s7olAjz6Bu4E45JPY8ci7xmhgVLV/ VY8Q== 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=B42YBEHueO+TiKJPwlH3QcuzKXrvjRANaoetpGdPu2o=; b=U4c8Okj7FQMI1cRBRh2AMO5f9H52ZD8fucSb0/cEtUycH6eDZShp1CmUHkhuJot3mF +O7QkYCQlzUcl0te8QGZ/RfVoOjhI6FzCIiHqiWELaNlHyAoCU2sKgbx629Cyb63h1oo izXKpJsncisk0BWID2UP+BI8MFbjzq0exfK1eJtP0BgplNRGAsOXg0STeCXVBPxaZS0N EIC56oW+BKdthj9hjGJI/PjPBbDBQnaSlGfSqG3Ft/yGyktfqdH9ff2NPnaYVXRSm/q6 HxSSqnt0z73A0hc/fpwMQD6l8F63eMUmSOxsZe7+FjKA3ULDlXfy4yO9Cnd3ZKr/Z0l1 dsbQ== X-Gm-Message-State: AOAM530rQI4IzmM47WSr21oxQ29IUKiuLdIoLys6Z+XXs9xbBQt9s+tq 0UbKhHjxzN5nuS7FZGLYR0tb/0gQ6dzSKQ== X-Received: by 2002:a05:6512:228b:: with SMTP id f11mr11421158lfu.78.1612814071870; Mon, 08 Feb 2021 11:54:31 -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 w12sm634913ljo.20.2021.02.08.11.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 11:54:30 -0800 (PST) From: Tobias Waldekranz To: Jakub Kicinski , Vadym Kochan Cc: "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: <20210204211647.7b9a8ebf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> References: <20210203165458.28717-1-vadym.kochan@plvision.eu> <20210203165458.28717-6-vadym.kochan@plvision.eu> <20210204211647.7b9a8ebf@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Date: Mon, 08 Feb 2021 20:54:29 +0100 Message-ID: <87v9b249oq.fsf@waldekranz.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 04, 2021 at 21:16, Jakub Kicinski wrote: > On Wed, 3 Feb 2021 18:54:56 +0200 Vadym Kochan wrote: >> From: Serhiy Boiko >> >> The following features are supported: >> >> - LAG basic operations >> - create/delete LAG >> - add/remove a member to LAG >> - enable/disable member in LAG >> - LAG Bridge support >> - LAG VLAN support >> - LAG FDB support >> >> Limitations: >> >> - Only HASH lag tx type is supported >> - The Hash parameters are not configurable. They are applied >> during the LAG creation stage. >> - Enslaving a port to the LAG device that already has an >> upper device is not supported. > > Tobias, Vladimir, you worked on LAG support recently, would you mind > taking a look at this one? Hi Jakub, 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?