Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp971614iob; Wed, 4 May 2022 11:46:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmMnKff37xQX1ACRrWhISBdA8G6Jz3Kr1JWIwE6xuidEciEmwHKWJ3NvOSwbv/eG7tv5SX X-Received: by 2002:a17:90a:bf0a:b0:1db:d98d:7ce9 with SMTP id c10-20020a17090abf0a00b001dbd98d7ce9mr976963pjs.155.1651689986184; Wed, 04 May 2022 11:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651689986; cv=none; d=google.com; s=arc-20160816; b=VlMW4LO4TVq5Gf+y0DqjZczH+CZyrUJdul50AIZpWLzBMUBaqxxs1TJ2AoagdGzNwU q+ab4/T7MlL6O1CmlZbiDe4CQobuwf6T2un30j2JHBMYlVO5JieW2xuxhKJF/+Gh78lq ClWWXE5NIUiHomLHHuStOmoiu1Yr5a7YRxWUc85TpNRqmcbOBcrQestk8E/FaeKZxDc8 JqKMjlcnh+AHRyI4agMS1FTcdCZLttoVnTE0aNzb5hMko3N1QpiGeg0eYnlzduxKt2Hd yKWadYnLFnaE5LVGyFsvyG2n+Xl9tZ+iEukcQXlGp0TIfH8A+iaHZxQL6eQvspcEbRnm jpRQ== 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=LAHAvyI6ZnoSXv+X/gfsslQYBTBEo6ls5kRk7sRimNQ=; b=yp2tqmCCuT1GpsEx+P8vIR4tP0lVw7Gtbq7lzXzXYWJ2bZMTplWsUCbiIjA/csgKBE Y1u+tPE5ijxI2BOjCkej/bEBr0WSTHgIU3JbFoztrELXSxk9D+ORhm3zbuUudIfhui1j /Z955ajPub2hMkcpt0ZbnHMYCYFGHlUpMHODbWDgjhUQVPnENoRBRezfxSKa2hS0R4ek vwP0r8rY8Wcws6Fslgj0TZF2Rz3QyR0E4Q+xFq2hAs5ZzAnFDpFnMU/iycAArJ0FztMS 4iXkdUAc4P7x/TSmIgHe9nuGf8Y6fbV3FXqwiKQqQBecWrnsEYcwQHFK0YScnMdXIVmO iCNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=d2zLTEfx; 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 w19-20020a631613000000b003c5f7620ff7si1532514pgl.769.2022.05.04.11.46.09; Wed, 04 May 2022 11:46:26 -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=d2zLTEfx; 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 S1352336AbiEDPZT (ORCPT + 99 others); Wed, 4 May 2022 11:25:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352451AbiEDPYs (ORCPT ); Wed, 4 May 2022 11:24:48 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BF6245529; Wed, 4 May 2022 08:21:07 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id l18so3534087ejc.7; Wed, 04 May 2022 08:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LAHAvyI6ZnoSXv+X/gfsslQYBTBEo6ls5kRk7sRimNQ=; b=d2zLTEfxiFW8IHkGbm+yF8OyirFjLdhxSjhT022lHH3p4j3lqZegdJRmOF7k73ramv BMogGRR85t5Rl95au7I8Hes3qTx+i+viaO6tKgMdx4rG9HPoX5gKwW1oPK3d162VkOGo Mis72JEjdTrJMjrO/iTgIm/uQ6MrgEahwrVodKf9deWDreacy5g3h/GK9jtxofo0Q3OZ TlAM4Y4eoZs/iuLUkSRGzxIdXzsU0QS2V6t6H0495LmLh9lMOQfKEe/HTR4YC3+cQQk+ Mw2OPi89yh5BJu8O3Zay0fyQJThboCs8+JiEGPG60JVHUYrhRcXNJ+EJFqrOLQbBGkr2 rSLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LAHAvyI6ZnoSXv+X/gfsslQYBTBEo6ls5kRk7sRimNQ=; b=BL+mj6jQWedHeJ7Vg+GsYnAeG2tjxS5TLKMXUqt4zsLryy/oIPooZ5lMqQMOYKPyjM f11z1FDwyfO28yAo5wV1f2wPpyJQmXWD9YZoQ4PxNLNhFXePjiozFxYMB9LnHL67HavB OYNnonyHA3GT/DqlATguB4odbFnn6GOVlSfgVi0dokaR5e+MScLR+/nl10rHXEbngmI1 bQaDaVgtaO4+AKVcAYm41izz1u0IYo3YHW6iohrbJ5KTzaZu2lz6UAGph2fL7r97Mg0o sbKcr3kCStMnJU1NosBNuvyzWoLkJNvQou2fIvTguZ+Td295RhWkw2FILg2Q+RXSeGeq OmPQ== X-Gm-Message-State: AOAM531GcYiAIWnsBAGtFeVMScpY9xuVd6QbvSBNvY1BpoanBsD09sIF nGtm9gXmw8rqow1km5Z6KIE= X-Received: by 2002:a17:907:7e91:b0:6f4:3b93:1f6e with SMTP id qb17-20020a1709077e9100b006f43b931f6emr16167776ejc.91.1651677665407; Wed, 04 May 2022 08:21:05 -0700 (PDT) Received: from skbuf ([188.25.160.86]) by smtp.gmail.com with ESMTPSA id ca19-20020aa7cd73000000b0042617ba63c3sm9264323edb.77.2022.05.04.08.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 08:21:04 -0700 (PDT) Date: Wed, 4 May 2022 18:21:02 +0300 From: Vladimir Oltean To: Frank Wunderlich Cc: linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Matthias Brugger , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC v2 1/4] net: dsa: mt7530: rework mt7530_hw_vlan_{add,del} Message-ID: <20220504152102.cj3fwae5anahthku@skbuf> References: <20220430130347.15190-1-linux@fw-web.de> <20220430130347.15190-2-linux@fw-web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220430130347.15190-2-linux@fw-web.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Sat, Apr 30, 2022 at 03:03:44PM +0200, 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