Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4194223rwl; Tue, 28 Mar 2023 04:09:07 -0700 (PDT) X-Google-Smtp-Source: AKy350ZAqinhtxZwbxobaMoWK8ilmwF0YtQvRdzuzpQ7H+syfivqV0SiSJCq/1SNA41OSwhuN5AM X-Received: by 2002:a17:906:ae82:b0:931:a164:8efa with SMTP id md2-20020a170906ae8200b00931a1648efamr15385545ejb.70.1680001747004; Tue, 28 Mar 2023 04:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680001746; cv=none; d=google.com; s=arc-20160816; b=MpNZIDRHukDNddPinUHgU48Rz+MpwLfu4uAvQOp4QGvU4JmvVjuS8PU3l3QmgX/dJs rjcQUbFn8n4EPvKjJJGdBb6vtihcWvma24W48MZe+B4ROIL1GW1wvAsUR4wXq2u7YAGt lcA9C/usFmGGL6WhGGjNOiF/DR0rvlc3JWpHrt2LQ+Cym15US7duKe5BIF4+TajpyNTS uVrIEtE2dzm2wy27VCfGuUCqszGYjtzLc51N4eUW3iqAJLdjMNPRMHc8exK2POci0gkt Vf7tThHerJ382KtGqMIJM7cwlvA1jHnL+gM3230XXTqo9iTA2ZFsHFdyMs2MYAuR55g9 n+sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=ZudYGNHvAgPdTp0WTPAT2m/9U9KwG4/3bZKY+rxOHUI=; b=I5gjDqd+nQs7cAbFa5FlEaRlb6pIWA9mNBQbuWb363jpfSNooCJrnfHGjeH3xUD2sH HBRLsCu8yYalEV8EyXFftjYuK0L2wyYiPTctVdGQaNDPW+3ByYFUUNHdDNAKKJoR8Sgj 4RyaV+bOcQ8i5G15FOCZTL+dCTjB/rTt7cPUgV8/STDxiCFVjOFjgVF6JAeKhnhjMe1h UIc/8bQ02JNRdXC1XYnsmZ4SuUndRKTf2t8EyaXop6OzvmhZ6LAhP6Lw8WyN0YMsIcKr r1cUEidcBALNDm1FGHC9saALlCi9KzirDbrUmTMWnoHMwHzkwL44SRVemO6u3OabF53A RsTg== 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 qu6-20020a170907110600b008c580ab8d9esi8074350ejb.69.2023.03.28.04.08.36; Tue, 28 Mar 2023 04:09:06 -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 S232658AbjC1LHS (ORCPT + 99 others); Tue, 28 Mar 2023 07:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbjC1LHH (ORCPT ); Tue, 28 Mar 2023 07:07:07 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C34691BE4; Tue, 28 Mar 2023 04:07:02 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 5FD7A1883927; Tue, 28 Mar 2023 11:07:00 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 570672500389; Tue, 28 Mar 2023 11:07:00 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 46A3B9B403E4; Tue, 28 Mar 2023 11:07:00 +0000 (UTC) X-Screener-Id: e32ae469fa6e394734d05373d3a705875723cf1e Received: from fujitsu (2-104-116-184-cable.dk.customer.tdc.net [2.104.116.184]) by smtp.gigahost.dk (Postfix) with ESMTPSA id 9C4BC91201E3; Tue, 28 Mar 2023 11:06:59 +0000 (UTC) From: Hans Schultz To: Vladimir Oltean Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Florian Fainelli , Andrew Lunn , Eric Dumazet , Paolo Abeni , Kurt Kanzenbach , Hauke Mehrtens , Woojung Huh , "maintainer:MICROCHIP KSZ SERIES ETHERNET SWITCH DRIVER" , Sean Wang , Landen Chao , DENG Qingfang , Matthias Brugger , AngeloGioacchino Del Regno , Claudiu Manoil , Alexandre Belloni , =?utf-8?Q?Cl=C3=A9ment_L=C3=A9ger?= , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Shuah Khan , Christian Marangi , Ido Schimmel , open list , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:RENESAS RZ/N1 A5PSW SWITCH DRIVER" , "moderated list:ETHERNET BRIDGE" , "open list:KERNEL SELFTEST FRAMEWORK" Subject: Re: [PATCH v2 net-next 2/6] net: dsa: propagate flags down towards drivers In-Reply-To: <20230327225933.plm5raegywbe7g2a@skbuf> References: <20230318141010.513424-1-netdev@kapio-technology.com> <20230318141010.513424-3-netdev@kapio-technology.com> <20230327115206.jk5q5l753aoelwus@skbuf> <87355qb48h.fsf@kapio-technology.com> <20230327160009.bdswnalizdv2u77z@skbuf> <87pm8tooe1.fsf@kapio-technology.com> <20230327225933.plm5raegywbe7g2a@skbuf> Date: Tue, 28 Mar 2023 13:04:23 +0200 Message-ID: <87ileljfwo.fsf@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 Tue, Mar 28, 2023 at 01:59, Vladimir Oltean wrote: > > which idea is that, again? So I cannot us the offloaded flag as it is added by DSA in the common case when using 'bridge fdb replace ... dynamic'. The idea is then to use the ext_learn flag instead, which is not aged by the bridge. To do this the driver (mv88e6xxx) will send a SWITCHDEV_FDB_ADD_TO_BRIDGE switchdev event when the new dynamic flag is true. The function sending this event will then be named mv88e6xxx_add_fdb_synth_learned() in drivers/net/dsa/mv88e6xxx/switchdev.c, replacing the mv88e6xxx_set_fdb_offloaded() function but in most part the same content, just another event type.