Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp262127imw; Fri, 8 Jul 2022 02:29:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sZXjHKW09g85+5+s+ajrm/J1tNnznkLMdGEIKrVJe4FEGxVcJtWrTsGIpNnqQJhaOkTvHw X-Received: by 2002:a05:6402:520c:b0:43a:aba8:84ae with SMTP id s12-20020a056402520c00b0043aaba884aemr2766172edd.198.1657272559331; Fri, 08 Jul 2022 02:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657272559; cv=none; d=google.com; s=arc-20160816; b=Gso+86NwtxvCwEwhstxtXd16X6JkFcpsLxHzutbHQjPb8xwztKtCpdKMBUV3+1hwgt fUTOgTW3H/SZXgVKY4YX5alceDi/mAqBeHv4wsoBTkYwDqLwGae7nlNIgh41KFhW6m4P mQKUxRCV6erD0567VuYU7QNNscGHPwIqMFVOuFgxmz8eAha6hF8qXxUrU6KJminirj0R WKB++LpG29R7RmjlCsJZ8gO+DyQCTh649WEWaWfbxC/SRi8UAPxo49PZojHmctUdFZ4O qL0fbZtqd1NgvgTxO/RqQ4P7wCNs4vAgcUnwhM8dxqXUENHmSaZ+yG1g2P+oybxJH98L F1+g== 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=AedSLvGeu+u2cAU++iUmCJPLBgRAW8LzVoBPSxRrARU=; b=sqdLsJjiODs/BZPVE3SZcixOry7OOz4YcNGXFPi49723vHIdUbdCawNTh9/3HxZ+0u JShkeZYA4tvaB0a3OgktgNNSLwP/QqlWaoLBnEbaBabhuJyQWLI6VO72pjWihLgSHjmO I4YrFwpZOIYNpcO69V0LjopN4bPubFseStJ2s8Lpg/kSD8PL3Jhln6/+s8tUsZBpD1pd NhGnd7bqIWNqLTycXn+/S18utKoEx5Av9S5Y8PkJQ9jqmV+F+EZ7EEYbUAUyyLyaKA2h QWU8HYP17m+wQJRq4qTq4Tc/ZsA4eDidLUWNwZ28PqwDNf0+3ID5coILpLQG9+uc2AWL XNRw== 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 z13-20020a05640235cd00b00437bea80d9csi29291736edc.620.2022.07.08.02.28.54; Fri, 08 Jul 2022 02:29:19 -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 S237866AbiGHJ1U (ORCPT + 99 others); Fri, 8 Jul 2022 05:27:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237790AbiGHJ1S (ORCPT ); Fri, 8 Jul 2022 05:27:18 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4573D134; Fri, 8 Jul 2022 02:27:16 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 5D9F318873BF; Fri, 8 Jul 2022 09:27:15 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 58FFA25032B7; Fri, 8 Jul 2022 09:27:15 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 4A736A1E00B5; Fri, 8 Jul 2022 09:27:15 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Fri, 08 Jul 2022 11:27:15 +0200 From: netdev@kapio-technology.com To: Vladimir Oltean Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Eric Dumazet , Paolo Abeni , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Daniel Borkmann , Ido Schimmel , linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 net-next 3/6] drivers: net: dsa: add locked fdb entry flag to drivers In-Reply-To: <20220708091550.2qcu3tyqkhgiudjg@skbuf> References: <20220707152930.1789437-1-netdev@kapio-technology.com> <20220707152930.1789437-4-netdev@kapio-technology.com> <20220708084904.33otb6x256huddps@skbuf> <20220708091550.2qcu3tyqkhgiudjg@skbuf> User-Agent: Gigahost Webmail Message-ID: <463ead20c286688abc9800e487558a3b@kapio-technology.com> X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,FROM_FMBLA_NEWDOM, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-07-08 11:15, Vladimir Oltean wrote: > > Well, yes, but if I'm correct, the bridge right now can't create locked > FDB entries, so is_locked will always be false in the ADD_TO_DEVICE > direction. The bridge can create locked FDB entries with this patch set. That is part of the idea that a SW bridge will have the same features as the HW version, so first I made it in the bridge. > > When the possibility for it to be true will exist, _all_ switchdev > drivers will need to be updated to ignore that (mlxsw, cpss, ocelot, > rocker, prestera, etc etc), not just DSA. And you don't need to > propagate the is_locked flag to all individual DSA sub-drivers when > none > care about is_locked in the ADD_TO_DEVICE direction, you can just > ignore > within DSA until needed otherwise. >