Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2661193pxb; Sun, 24 Jan 2021 15:50:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzP8Qf+hiNjLeRfBw0Xfhwer3Dk5PsbkkyQcsyTKUYgwEnDaCmWahkWZidrob8ySib9Qfw/ X-Received: by 2002:a17:906:2681:: with SMTP id t1mr1356696ejc.29.1611532246233; Sun, 24 Jan 2021 15:50:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611532246; cv=none; d=google.com; s=arc-20160816; b=mrZ0yA6oSRpetaIuecdjm1HjcXdgaiZC5h2bP3ylV4ita/jTgFj91+IbsvIYgL4wTV AJwyQjW9cGmcE32FpRETasTPmznGYfTUD94NPt9ddhYw5VogXtpBU8Y5IORCNDAx8jl3 ohnVti0mGr8LSLKd4UcpOEOOU13VEI5t1l6+Od+BwUB67Rfnv26vSWn5xU76SpuTtr6P f/KI6FY2ay5R3GimclwLn6+kFU6L0v+eLEU7j+47T6NvoSWC7QssoNaCX/U4uATLvz86 IXxhOTstoHU9IoCUGxx9/Hmh3InypmlrDMQh0xcjpjfgSuwbKnQ7KHk1PTdhFNx5cBNf pBhQ== 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:dkim-signature; bh=wHikCNAG5FYFyR/IsoRvLpRbiKDpnYK8CiW4RxJd0gg=; b=NQ7YOiYAnNqszkayv8pqkXeCfW/klEB2rRdnkwr0Q7e6NiRl/tJPgLkPSW6UQkIFcT DlYnWgWm7+4bESi809rY2Fku3LD3Ays4FhxpO/Ic7PWCY7+kVGcju/3z6zNNJUxynfO8 muEsz5C9qK967zMmOodDVgllee7IOmgGGZR3DBxZLgAa70oOHz3fJi1rDogPh//edMK1 NkJbWqps7+5h7f3Gg7+HCjFDyjjLcrSoLodJ9p6HewHkCYFmK9zVeTnf6MhEH/a8yQBe u4Hg2wC4B6uEiuwyyNffef2kqaGPmK7smIdpjrvb+WCxPSIXz/va0fVBxPbDjSiF8HB1 UL8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gteQIflj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si5383881ejz.530.2021.01.24.15.50.22; Sun, 24 Jan 2021 15:50:46 -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=@gmail.com header.s=20161025 header.b=gteQIflj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726512AbhAXXqC (ORCPT + 99 others); Sun, 24 Jan 2021 18:46:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725986AbhAXXpy (ORCPT ); Sun, 24 Jan 2021 18:45:54 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74FF2C061573; Sun, 24 Jan 2021 15:45:13 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id w1so15422167ejf.11; Sun, 24 Jan 2021 15:45:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wHikCNAG5FYFyR/IsoRvLpRbiKDpnYK8CiW4RxJd0gg=; b=gteQIfljHT0Dy32fAsEpHjoAiLao8cU2FNk9onC8L6zKJiSboIpcUDbsnj5J8SOwwA iTqCzJUcZGU/ELK8Yp1EIfOnGriq8FFrjt3IeFmUZKYIGpIT58FbGQEoSXf4LiD3uOXj mfR0hnxCNWsBAMmUW+Zkr9WnwqCInjAOad77txkdB7MDuih7Oh2nLSl+r3qcvKmsZDZh VsSfhFUB7OKCkK791qEaPQ4Mhk8Kn/6lrMzFrw1fA9TKvxHdP7xg35Dw4yYCF2u8huZd 5Lso3SZqDSH6xASy3t2YrzGzeBm1bRdfJSKlk+Ke+jLQZGiT5eQzCNwUmgp0BGzXmGJ5 z2nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wHikCNAG5FYFyR/IsoRvLpRbiKDpnYK8CiW4RxJd0gg=; b=mqC7/gQYfVqTro1pYScwJ/EsgicKwp6KLN/AhWFbVEJT94c9dNw4F6ibWXQfJpf6lh avH4la3F5Mjt2om39JVpTqKWmILfJWma4zmau/F4kos/iuueXsvS56rc1mHga/yvsADc kQHO4/wrvyOptGc0L3PVMEpwQq6gPmqM2JkM7d2On0NuAqnRivIfOMwkU5cZ+J6J3dkp IcOB9jOYIG/zkO1K4OhSfmR27SjS580QKdHmyENBOQVwBWHymLaDLcttnwDovCeEdVrq FOEUrclCI5EiiDlPMYvgg+hLs2wo4HiDCXMhoSD4xbrPJmdxGhMknFy9jmSN2FTfLc/F pPMA== X-Gm-Message-State: AOAM532Q5h3yPkJEIxu1xZH0YkVI1v8oWD/SRrpOkNHYRKeS/FTu6CSG phvtJiWZMNjc1H0KKHEIIKU= X-Received: by 2002:a17:906:f950:: with SMTP id ld16mr856152ejb.553.1611531912011; Sun, 24 Jan 2021 15:45:12 -0800 (PST) Received: from skbuf (5-12-227-87.residential.rdsnet.ro. [5.12.227.87]) by smtp.gmail.com with ESMTPSA id cx6sm9906385edb.53.2021.01.24.15.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jan 2021 15:45:11 -0800 (PST) Date: Mon, 25 Jan 2021 01:45:09 +0200 From: Vladimir Oltean To: Linus Walleij Cc: Pawel Dembicki , netdev , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] dsa: vsc73xx: add support for vlan filtering Message-ID: <20210124234509.c4wkoauiqchv4aan@skbuf> References: <20210120063019.1989081-1-paweldembicki@gmail.com> <20210121224505.nwfipzncw2h5d3rw@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 12:19:55AM +0100, Linus Walleij wrote: > This is due to the internal architecture of the switch, while it does > have an internal tagging format, this is stripped off before letting > it exit through the CPU port, and tagged on by the hardware > whenever the CPU transmits something. So these tags are > invisible to the CPU. > > Itr would be neat if there was some bit in the switch we could > flick and then the internal tagging format would come out on > the CPU port, but sadly this does not exist. > > The vendors idea is that the switch should be programmed > internally as it contains an 8051 processor that can indeed see > the internal tags. This makes a lot of sense when the chips are > used for a hardware switch, i.e. a box with several ethernet ports > on it. Sadly it is not very well adopted for the usecase of smart > operating system like linux hogging into the CPU port and > using it as a managed switch. :/ > > We currently have the 8051 processor in the switch disabled. The sad part of me not having access to any Sparx-G5e documentation other than product briefs is that I can't actually be fully convinced that this is true without seeing it. Other Vitesse switches support DSA tagging towards an external CPU, so if these ones don't, the Node Processor Interface feature must have been added later. Anyhow, you did not approve or disprove the tag_8021q idea. With VLAN trunking on the CPU port, how would per-port traffic be managed? Would it be compatible with hardware-accelerated bridging (which this driver still does not support)?