Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2252173rwl; Thu, 30 Mar 2023 08:00:01 -0700 (PDT) X-Google-Smtp-Source: AKy350YqDPIxL51wRc4ua+u4khkfysaJOjM8FgfDN5DTqqf05GFkKNLIw6V0xYoeMSRBeGREz6oj X-Received: by 2002:a17:902:fa50:b0:1a1:d395:e85c with SMTP id lb16-20020a170902fa5000b001a1d395e85cmr2632878plb.0.1680188400915; Thu, 30 Mar 2023 08:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680188400; cv=none; d=google.com; s=arc-20160816; b=En/fA2+UzmvzG2FKLsVpbaLDXf2mjPBgowD+b5ERJcqhnQuMr/lqVL6yERQHDqHKeK IiwVTOtZKKuE3/L2Adh3KhJn+1v4jvY42UEChtOqulS1UoVKpq69EmXEx1ZkF1aGtMqL kQOcuN231ZWOHtfRAjQwa2TGQudqb6KXnyaZxZNFHbHTRGqnBsSKZu4e6PhHfb3LQHNy 871umM7O93jzW6TTIZDlUsGG5kz0LPe6lfEUQn6rJBcpAVHpBrmj0gPxeg/jdNXuiO06 co3Sl4UXcPlJVFKCsRMp4CePV3qcowLd+0buBdkfp2wdHrybUyvp+Z9dvd3aRoBdKc2j F4aw== 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=YPzy9lxdRgx+du4Wdie26QK+AD+9fhqiRTmW/JYGFLc=; b=LLAlFz7iGKMpzXmGh6m+sb/2AfRWnbLgVv0KmcCSDCpA8FYGbTo1+AYC1xhg7XFmxC 1QWNb7sEPETwCGGxiLvzz4ZjFhvM+qr4Eb7SsSUOqo79XQUg+1ib3fwmq3zRwqFAlmWf X/SGf4mshTHQGt+0jS3yg8GNKIWs2MZPA7spBIAi6Qco6rY3rLe4bpoPSAZqwfQMkhb7 NZiZIbTsuGnYfGgKY2Fk3hB19AukMEI2l8ClIfypptJv1lykTwQm6PlQqQi7cNyfOpG/ To9LTJIGDvDYpo7No+uaqKqGO/UVgHcKnrK563o4+l9XHuGCKNH0N0stCVEc9o2Wt+pY CsJw== 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 bc12-20020a170902930c00b001a2826f743esi2510324plb.268.2023.03.30.07.59.02; Thu, 30 Mar 2023 08:00:00 -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 S232660AbjC3O5l (ORCPT + 99 others); Thu, 30 Mar 2023 10:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232629AbjC3O5e (ORCPT ); Thu, 30 Mar 2023 10:57:34 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94440CDEB; Thu, 30 Mar 2023 07:57:10 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 539B918843BF; Thu, 30 Mar 2023 14:56:59 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 48FC82500389; Thu, 30 Mar 2023 14:56:59 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 42A529B403E2; Thu, 30 Mar 2023 14:56:59 +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 8F6B191201E3; Thu, 30 Mar 2023 14:56:58 +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: <20230330130936.hxme34qrqwolvpsh@skbuf> References: <20230327115206.jk5q5l753aoelwus@skbuf> <87355qb48h.fsf@kapio-technology.com> <20230327160009.bdswnalizdv2u77z@skbuf> <87pm8tooe1.fsf@kapio-technology.com> <20230327225933.plm5raegywbe7g2a@skbuf> <87ileljfwo.fsf@kapio-technology.com> <20230328114943.4mibmn2icutcio4m@skbuf> <87cz4slkx5.fsf@kapio-technology.com> <20230330124326.v5mqg7do25tz6izk@skbuf> <87wn2yxunb.fsf@kapio-technology.com> <20230330130936.hxme34qrqwolvpsh@skbuf> Date: Thu, 30 Mar 2023 16:54:19 +0200 Message-ID: <875yaimgro.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 Thu, Mar 30, 2023 at 16:09, Vladimir Oltean wrote: > On Thu, Mar 30, 2023 at 02:59:04PM +0200, Hans Schultz wrote: >> On Thu, Mar 30, 2023 at 15:43, Vladimir Oltean wrote: >> > On Tue, Mar 28, 2023 at 09:45:26PM +0200, Hans Schultz wrote: >> >> So the solution would be to not let the DSA layer send the >> >> SWITCHDEV_FDB_OFFLOADED event in the case when the new dynamic flag is >> >> set? >> > >> > I have never said that. >> >> No, I was just thinking of a solution based on your previous comment >> that dynamic fdb entries with the offloaded flag set should not be aged >> out by the bridge as they are now. > > If you were a user of those other drivers, and you ran the command: > "bridge fdb add ... master dynamic" > would you be ok with the behavior: "I don't have dynamic FDB entries, > but here's a static one for you"? I don't know if you have a solution in mind wrt the behaviour of the offloaded flag if it is not to do as it does now and let the bridge age out dynamic entries. That led me to conclude that this patch-set cannot use the offloaded flag, but you seem to suggest otherwise. If you have a suggestion, feel free.