Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1876892iog; Tue, 14 Jun 2022 15:45:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1sIG0tNweX7Ucd2Y8G564atQL2lAZjbMbb0gt+oRKnYh5i9dNDbprAmAffdmtRk542oEp X-Received: by 2002:a17:907:7e8b:b0:711:e5e6:6694 with SMTP id qb11-20020a1709077e8b00b00711e5e66694mr6418751ejc.35.1655246721853; Tue, 14 Jun 2022 15:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655246721; cv=none; d=google.com; s=arc-20160816; b=kejWrLkZHU7Fla6CXQKA/zI1enXCyfab2b9ZmMAmjEoyvH6x3uMwR/YbTDv9K1cjhx izfKlQBX5v/JI9ksKK8oXTu5CXUkOrHYSRhFEwSKT167t1dpOp8Ou9Mrxn5KP4Zf+A/Y QN4qqOCNKlVDPRPIpkjOkIil3kEJJeFVEq2A544dY03rpehRnLH4ZpRIjK6DHcDFGo+e QcFhK34amVZow9kVOnvlQ9rYw3BXD9ujkZdtNIVGTEbNmxAa0v+dwEEnP2w+ydJCj97F foZcKWQgJRbF1N5+G5WwN0unaYXWyVgbatTkCDnyQlEco5yeYmr17PRDpHyg6iP9EaC1 KuWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=AHmm98PAzPcJptU2nMgRv/dq7HuAyrlYg6vwIKYPXjA=; b=qDtU/TxjT9uCgYCsF0e+TyQWIIzoYbJT3J0gmWFHwbuy7vFF0Ilzgr2OL9cY52N4Ro 2ofMWtBLRBfSuju4s6CKHPyVOx61SUsMfcW0ODmdQU5E65U4zTaceTqP/b3ZIj0ktdt9 yzDZQNXpsF12NrMS3TopwaOYvDxAzJL7EVA/R8aO6Rgttrf7OEVZfh6LDu8ywnVjjCy7 LMuDakuYYisBL2Cp+vdXr1eHbhS3HDxwyxdO9i4B8BpOQ4flS9bVqsxnAHgpdOc4/aLe 3sR+rAsEm8O7e1ONSZAJ9uY1SyFb5TtdVUQF7Mo8PcpKD8qfgS1Ue9BalCU901I0IFly /BHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EVNEZd6o; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb41-20020a1709076da900b0070777336121si14845220ejc.446.2022.06.14.15.44.55; Tue, 14 Jun 2022 15:45:21 -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=@gmail.com header.s=20210112 header.b=EVNEZd6o; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345698AbiFNWex (ORCPT + 99 others); Tue, 14 Jun 2022 18:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231542AbiFNWew (ORCPT ); Tue, 14 Jun 2022 18:34:52 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B064D61A; Tue, 14 Jun 2022 15:34:50 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id g16-20020a17090a7d1000b001ea9f820449so350665pjl.5; Tue, 14 Jun 2022 15:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=AHmm98PAzPcJptU2nMgRv/dq7HuAyrlYg6vwIKYPXjA=; b=EVNEZd6o3bpvxYSFtFISdR9FG0168s4U0mz6ypOOJp99KiPoh9Ik/oZ+zIH3YUQnQ2 HrLxu1Giim5FZGhqPLXL1rHISZdFRouO9OtygCS6VSiunI9tDUdPmn0m24L9MmwXzu/j KKNxIRlyokhcdqHq/190VDPEBsYt9a9HA8rLwuOC3I/KPwrPeCzRGuV4OCfN3xsv2HTk 3usgarfpE6/+sGxJyaVyfingn3erRrmcX78ZcUX56lKkhOVREgGEatdxuQzuaaWVhmr+ GvbPnDykhxVOgptRVZZnEjSXobDOW6H8uZ+Dc+sRRS/+eK4TEVX6cK2Jt0EiNNTGzQhW /t9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=AHmm98PAzPcJptU2nMgRv/dq7HuAyrlYg6vwIKYPXjA=; b=Rn61eGFwW7oUqoY2g1GcCCXjWRO6/y1B4D5JbEfhgCIfIHzq2To6F7nzFzknrrKJlP g2Uc4G6ICI35JVpDEXa2LK01Ml+CucTlggfNWCkUH2n3ztXXQrpaOkmhU1IGHoCsAL7Z +qL41H+Qf6Fo8tWbDaUrBIPmOeX3hJbd4Y4UcccOYfbVShvs47Y4NOKBCn66HoEidux6 2eifm9kJZGptDbey5AIGn6F7VO6fXmgVPJcZBwYQKmw1TVw4z3kILrjoY5V7xIFJhKp9 Y//p8Tdexa4UW9rcjZK7JdQ60YloYCsvnqzJfEE9y/+h2MzFLzEKs/IrqwTlgayLn4O6 H+Tg== X-Gm-Message-State: AJIora+SA92VzIZvbUgKd15eozaluN1iCJFJ2jxF8Tux/Fw6POcPuDgn ktC7Tu5ClSxkrqGI83sOQhQ= X-Received: by 2002:a17:90b:3b45:b0:1e8:8688:219d with SMTP id ot5-20020a17090b3b4500b001e88688219dmr6695879pjb.231.1655246090167; Tue, 14 Jun 2022 15:34:50 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id q21-20020a170902edd500b0016797c33b6csm7736666plk.116.2022.06.14.15.34.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jun 2022 15:34:49 -0700 (PDT) Message-ID: <749728f6-fe32-bf3f-e71b-020e58a4cde1@gmail.com> Date: Tue, 14 Jun 2022 15:34:43 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v4 2/6] net: dsa: mt7530: rework mt7530_hw_vlan_{add,del} Content-Language: en-US To: Frank Wunderlich , linux-rockchip@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Andrew Lunn , Vivien Didelot , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Heiko Stuebner , Sean Wang , Landen Chao , DENG Qingfang , Peter Geis , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Ungerer , =?UTF-8?Q?Ren=c3=a9_van_Dorst?= , Mauro Carvalho Chehab References: <20220610170541.8643-1-linux@fw-web.de> <20220610170541.8643-3-linux@fw-web.de> From: Florian Fainelli In-Reply-To: <20220610170541.8643-3-linux@fw-web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 6/10/22 10:05, Frank Wunderlich wrote: > From: Frank Wunderlich > > Rework vlan_add/vlan_del functions in preparation for dynamic cpu port. > > Currently BIT(MT7530_CPU_PORT) is added to new_members, even though > mt7530_port_vlan_add() will be called on the CPU port too. > > Let DSA core decide when to call port_vlan_add for the CPU port, rather > than doing it implicitly. > > We can do autonomous forwarding in a certain VLAN, but not add br0 to that > VLAN and avoid flooding the CPU with those packets, if software knows it > doesn't need to process them. > > Suggested-by: Vladimir Oltean > Signed-off-by: Frank Wunderlich > Reviewed-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian