Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2105160rwl; Thu, 30 Mar 2023 06:11:22 -0700 (PDT) X-Google-Smtp-Source: AKy350bw6YiTOyT9jpk+bFQh14GZ+Cm16k5ei714kSAGoLt5hHPhe9ZmxX7gU5e76V3MeJhICNOc X-Received: by 2002:a05:6a21:32a2:b0:df:e8b2:ffb4 with SMTP id yt34-20020a056a2132a200b000dfe8b2ffb4mr17328981pzb.3.1680181881633; Thu, 30 Mar 2023 06:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680181881; cv=none; d=google.com; s=arc-20160816; b=TFWKFGs3NSml7mS2bnButaDHy4BHHminUMJyoEXzx6BOa2TtcpI11UMyAy4Q6iiQIu FFvRVI2RfeY4leJS0aj6agOCh5MHcQeQSJPLi84x7XIMrEvwWLoZ32/Uxie7m5/rqnXl fwL0H0PLVNySShGfE2Ue+J8dVBPN3DJ6KgzisWD33qoGdOfVc9mJULOI4Iel+ntAX6PX EhmYiMdqSaxeRXJ8JyrgEKBbsmUQh5/mirNQP8v1FgImW4yZy2H09cI54Ph/o43JNV6e 6ohrMEGO4/dsyqql/0tzej4h6uZ1HwOc+waeqJHNmcjo+cNPSHgziszYiRKkjaX0Z2Qh CCiA== 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=WCALfOMUCA+7cbkFzE5ClFTbOlYcV+OCvi/3vd2QpzI=; b=KUTmchF4k4rwa+yJaIU+oTBaLOj5gZLd1YA+f9wC7lKNTcAgcr173pCq0ezp0C6e+I Ul3AVoD5Ud92hqZEy7FD56DojsZZGVVkxD38v2Pv4FmpG/zas/xNq2Ne+AApvGO+qnRi cOd9vjn6uYBlbFuqVEUqLi+ifa9teGKNo9lCgvJ8Bl+dGgZreC6lmFOMBBODF0E2ogea Co7r3xMfo5qBF8L0kLg/sVOC2t+Y9XB6+w64g1LxXoYapbgPad7yQg6G+5loehmZU95G CmoTIrTTwDpmOuTpaH8HiqOFvdVqgDsE63vxx6rT0z+OTlwldgJ0eYA17sTli21n5Bq8 kafg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=q8EbuTS0; 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 c17-20020a056a00249100b00623e7faaf20si36751353pfv.192.2023.03.30.06.11.08; Thu, 30 Mar 2023 06:11:21 -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=q8EbuTS0; 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 S231853AbjC3NKD (ORCPT + 99 others); Thu, 30 Mar 2023 09:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231842AbjC3NKA (ORCPT ); Thu, 30 Mar 2023 09:10:00 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2DF59EF8; Thu, 30 Mar 2023 06:09:58 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id kc4so17990500plb.10; Thu, 30 Mar 2023 06:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680181798; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WCALfOMUCA+7cbkFzE5ClFTbOlYcV+OCvi/3vd2QpzI=; b=q8EbuTS0Rvsdu2umDVcsX21gG7WlwBzQRSqG+glphuDbA68bBDGtsvmT3P4wfKGP/6 ksI2QycwJ29BgXgpZszGd2yR0nsJiBoy7uSSOYvh85ySy/olqUxqsPlXQM4MEH0ETDj/ Uw+uVa11ka9CvyYadaY/ppOZQYZTFMDLdAOO/4yfQZY4Lci9qlzLc7ZQUKcH8hD1kDq0 eADo2mZ+huDKbIocDnksJPdZc3Kjj+S+j7v6iNX5qjWpz1lIj74uGkJ7fjiupJtogC0T szUgAORRQQJsjzinKN0/7PImycWiK1SPZlTDYgNbUpsEVOWW+wIMqJScJUQ5IMBbm+WY Vo6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680181798; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WCALfOMUCA+7cbkFzE5ClFTbOlYcV+OCvi/3vd2QpzI=; b=7MyKOIpSAAmOsLOYdHgUrXwMgOWdDxJdK5lbIG+Br+aswK9ISaGnJd28YTGwMvs0ds gSDAcj6wjs6nZKqU4zccovWYk/7BGzRnTmXmmSVAiAkvqKdQNGkRtLHpDn0tL2OAiwBv QL49vpA2Tie34AoS3zBWX9vCzttlaiS6/Q8SVPFa0ObMqSICYEcQyJoL6OvaOUhagYIT LrN0lbr3HqXUGO8aoQSsSl7aKLmyLsgWpGh2vkb62ujKnRKli7eP+RRa8jGS8QkuT5Yg 2WH1Ab/HsZAiSQnISWyFYoUu1StjapQw+dUVWY1Rsqp6icEqV6iUeN0y5Bz/+cj/EJoL 4nmA== X-Gm-Message-State: AAQBX9fdXeEQjxd3+xeWpA5H6phbb8DrcnlTd7xUKpfKPm+FUSNu0KFl LwtIqhCHiMC3ra3VD9VYuog= X-Received: by 2002:a17:902:ce8e:b0:19e:2fb0:a5d9 with SMTP id f14-20020a170902ce8e00b0019e2fb0a5d9mr6584147plg.32.1680181798039; Thu, 30 Mar 2023 06:09:58 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id w22-20020a170902a71600b001992e74d055sm8707635plq.12.2023.03.30.06.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 06:09:57 -0700 (PDT) Date: Thu, 30 Mar 2023 16:09:36 +0300 From: Vladimir Oltean To: Hans Schultz 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?B?Q2zDqW1lbnQgTMOpZ2Vy?= , 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wn2yxunb.fsf@kapio-technology.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 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"?