Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9995072rwd; Wed, 21 Jun 2023 14:56:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5C6Io42CRi7ur6ygnwKiy0uu0hwiCTC8Ymo33/hPehk825kC8s0QkDFL+x+ACvT2hPYzUv X-Received: by 2002:a05:6808:10d6:b0:39e:e149:bce5 with SMTP id s22-20020a05680810d600b0039ee149bce5mr11525056ois.20.1687384578887; Wed, 21 Jun 2023 14:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687384578; cv=none; d=google.com; s=arc-20160816; b=lLBOW4riDes42TQN2gRVA5FcZzCvmpxw+kl8Fo/VaiLj54/3xxi1UfvjN93Vf2puTi KPJMAgknMDZgfv60VH4omcFYyfJ/SDQcYVJPcf/8mWvo+PCB2Ty64eiu08lCQGSkMyoA RQu1NRCa8L7+RGCoEbd0GDHy/Q7QCfVw65Y8eq9bL1jUbPSKwOycg31SVzzcVYwqQSkF uNfX76jwzEfmvBpkeOM+Gl+STGQGIlKC9rxAj3vDjl5Aw0Ddrc1G1PxQmGOPCHOPbRby JYoeCspfC6D6aR24N3koCVS5ihq/kspqoP/FLwSZH07dOG1IxpXsyrY2hi8hRZc209Vi NfEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=8pU1mAMfIYrrV/zE8Re8kOdWl7lW0D3T201ge+UaFck=; b=jjEdUkMkOjqmzIx2ipSLU0eqAy3ZmWsyTeQQ+4EdDfNZ77YaH43pPYr4LMOdIDvCOn bkaOSgoBvjDE0aUAZC2hi8yazgnNMJKn9+BVZ3e8lCp7/o0sHtcX9JQwmLHudqOXJMgH Tt6rtg1GUjqlQ+Yxhea5iJEBJPKPmmfXI7c3eyC/26zjvX1EgoiqmsISHjVCznsUmYYH m8UuDnrdXvnnj3r+dFQ7YBoHIaOdk4XseF5a9gkSkLwYdZb1rrdu/cXX+dOYxW/L+jUf 8cS4tKbhoLFumJxfnW67oIASmbD1JnFC67Y/Hm9XM7tiwFzvKR7VqAHX56MOnHGLv5fO pM/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ik11VblB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j137-20020a636e8f000000b0053578f3de77si2740797pgc.239.2023.06.21.14.56.07; Wed, 21 Jun 2023 14:56:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ik11VblB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230128AbjFUVc2 (ORCPT + 99 others); Wed, 21 Jun 2023 17:32:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229818AbjFUVc0 (ORCPT ); Wed, 21 Jun 2023 17:32:26 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C519E57 for ; Wed, 21 Jun 2023 14:32:25 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-bff89873d34so896588276.2 for ; Wed, 21 Jun 2023 14:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687383144; x=1689975144; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8pU1mAMfIYrrV/zE8Re8kOdWl7lW0D3T201ge+UaFck=; b=Ik11VblBlSOMYQQNi+QzzjQS/OQZ1aRSLSvA4m1sj3DFlGMS0yTLkhu1iuz8OIl+AM JMDceKxLl+nR5gFkoONVzmgYKWMUD9pkbiiU7K6rdUoMOun812SPDUn3KGGSno6CTVXq ga4SqOTXVE5SbGDULGvH92xzn4fKzs7Ls5qEVZVQVCMO8eWnpd3Rr5/IPb0nNPU4TRRG bHvSgv3F7fKiuUyt5f4yoEpwlb4js6nkFkJDZc9KYFvPG+zkDDSZrzXLdFP62z77vkBz mVzntB0W4hgjW2oPkYZcxQv2KZdAYeKQ/4V2nzAMxP9iIu2FDGnALVT/kPOYhsrNCnWy 7LiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687383144; x=1689975144; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8pU1mAMfIYrrV/zE8Re8kOdWl7lW0D3T201ge+UaFck=; b=AuQiyR0qe0KuX16NK8u8+dAdU0u+iPzHSrPYFv/ToydQ4HAmCLZk9trBJ8nUE8QBLP eQdKa0UoQj2Jca0LXfisd2oRYiQV847q8X71zl4NMSLSJN/C31mAWNgbvA3jR2X5FcVs hfJeQphLVflHzfv9rKm4awScgprUkZnM/krRhSeOQRZSe4BXItmhgOk5Xe67fTn2ugDW HWGJUy/Ik70SPb/lf6qlYHiAlghsYGDOoZ8iAjPRaUR2GJGSPsvEmqgSjuG/Zlx0Umce P5sJsGR/LInvWi7cBsYQYryaK/4tY4a6PCvw3Ua+C/bVIJO/eRGbp8UVoTEjN1tGOfia eG8g== X-Gm-Message-State: AC+VfDz7fXz87EZ5/x+Cf0t2+BWb6NPqDDN2ns5rkKMFTmfVSO4NvVdh wzy3x2Ih1kv+sssI4c7YrWf1rXjZVlgv2uV1TL31qQ== X-Received: by 2002:a25:2102:0:b0:bc8:914b:c83a with SMTP id h2-20020a252102000000b00bc8914bc83amr9233735ybh.22.1687383144183; Wed, 21 Jun 2023 14:32:24 -0700 (PDT) MIME-Version: 1.0 References: <20230621191302.1405623-1-paweldembicki@gmail.com> <20230621191302.1405623-3-paweldembicki@gmail.com> In-Reply-To: <20230621191302.1405623-3-paweldembicki@gmail.com> From: Linus Walleij Date: Wed, 21 Jun 2023 23:32:13 +0200 Message-ID: Subject: Re: [PATCH net-next 3/6] net: dsa: vsc73xx: Add dsa tagging based on 8021q To: Pawel Dembicki Cc: netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 21, 2023 at 9:14=E2=80=AFPM Pawel Dembicki wrote: > This patch is simple implementation of 8021q tagging in vsc73xx driver. > At this moment devices with DSA_TAG_PROTO_NONE are useless. VSC73XX > family doesn't provide any tag support for external ethernet ports. > > The only way is vlan-based tagging. It require constant hardware vlan > filtering. VSC73XX family support provider bridging but QinQ only without > fully implemented 802.1AD. It allow only doubled 0x8100 TPID. > > In simple port mode QinQ is enabled to preserve forwarding vlan tagged > frames. > > Tag driver introduce most simple funcionality required for proper taging > support. > > Signed-off-by: Pawel Dembicki From my point of view it is the best we can do. Admittedly I do not understand the implications of using the 802.1 tagging for this, so I leave that to the experts to review. Reviewed-by: Linus Walleij Yours, Linus Walleij