Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1346004rwi; Thu, 13 Oct 2022 12:20:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6cGiMuVUEBHV8fKju5hlDT4BBkWwEU/izQrVljeR4dvo8htVcd0BnKhiY+MA7w0OXUEC7J X-Received: by 2002:a17:903:2cb:b0:171:4f0d:beb6 with SMTP id s11-20020a17090302cb00b001714f0dbeb6mr1161204plk.53.1665688827981; Thu, 13 Oct 2022 12:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665688827; cv=none; d=google.com; s=arc-20160816; b=uSWnAmyghvrqgFqpptv0nXnscstMc+RClrfMwyBtGkTJjPLw/dJOTrky718jvXzRbD SRQSNWM1izgvDHBjpLRzBpUTfOy8woAUqrMwPQOelS3UxodcldtwRTTb6ZPm8V3zn8jg yz2+M8RBDX8NY1suAcmppeMdyL+mPgTAzjOkl9SHVfx7RSaojCjVch7/jMf4UmSz8Zsq at4b6rTg+amOKuCwT4P5ZHiCExeqjW22CvNqxVT+GumlhLFQlgrUgMN28FzFYkMR4tOo q6uMzR3L6Sz3aKs5bz31mTEgCC+GFb+5NIJqQ62iQWDTzfl5dRuAwhKPZ9z1CPN/feqO sp2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=Ut4EbarKkpZ9mDezk2g3foovPdourKB9PA9pQp4xLyM=; b=YoEWUqalBsF+eVnwnU/91jrli/eP4qbFMm2WDDb2rF/sjb/lmScdZDiprJ+j8Od8Zw TWaO0MVWhE+n1bUR6dgMxxB2cbZHkrWURojhZwVyS2pMmS7YsR+HwCfECrao1G4RODMI GLVNfA9PgEPY++vbZpLmce53M6YKCMHOfre3i4ckkTrecj7IRrUJcDQgpLCxUQfhwMjp 1B7vJvnuOAwApBGttcree3WAA7dXjuX6pBwa5WEtilquNy4MKErvPw0mPfJ1TNrHIVny cDyvsZNpizc9ZZ9agzJ8cI1VzuBPPVs1/XAaUaYTrcpJHbGSoTP6wi8esC6cyEKVfr6K rRMQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp8-20020a17090b190800b002057a08d66asi367897pjb.23.2022.10.13.12.20.14; Thu, 13 Oct 2022 12:20:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230384AbiJMTAi (ORCPT + 99 others); Thu, 13 Oct 2022 15:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbiJMS7e (ORCPT ); Thu, 13 Oct 2022 14:59:34 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9B3748A0F; Thu, 13 Oct 2022 11:59:01 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id AED361884BD4; Thu, 13 Oct 2022 18:58:57 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 8569E2500015; Thu, 13 Oct 2022 18:58:57 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 7DDF49EC0005; Thu, 13 Oct 2022 18:58:57 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Thu, 13 Oct 2022 20:58:57 +0200 From: netdev@kapio-technology.com To: Ido Schimmel Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Vivien Didelot , Vladimir Oltean , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , Claudiu Manoil , Alexandre Belloni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Russell King , Christian Marangi , Daniel Borkmann , Yuwei Wang , Petr Machata , Florent Fourcot , Hans Schultz , Joachim Wiberg , Amit Cohen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v7 net-next 3/9] net: switchdev: add support for offloading of the FDB locked flag In-Reply-To: References: <20221009174052.1927483-1-netdev@kapio-technology.com> <20221009174052.1927483-4-netdev@kapio-technology.com> User-Agent: Gigahost Webmail Message-ID: X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 2022-10-13 16:06, Ido Schimmel wrote: >> diff --git a/net/dsa/port.c b/net/dsa/port.c >> index e4a0513816bb..eab32b7a945a 100644 >> --- a/net/dsa/port.c >> +++ b/net/dsa/port.c >> @@ -304,7 +304,7 @@ static int dsa_port_inherit_brport_flags(struct >> dsa_port *dp, >> struct netlink_ext_ack *extack) >> { >> const unsigned long mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | >> - BR_BCAST_FLOOD | BR_PORT_LOCKED; >> + BR_BCAST_FLOOD; > > Not sure how this is related to the patchset. > In general it is needed as a fix because of the way learning with locked port is handled in the driver, so as with MAB and also locked port in the future needing a non-zero Port Association Vector (PAV) for refresh etc to work, inheritance of the locked port flag is a bad idea (say bug) and shouldn't have been in the first place.