From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 1FAF560E30 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 0567360B09 MIME-Version: 1.0 Date: Sun, 22 Jan 2023 12:08:42 +0100 From: netdev@kapio-technology.com In-Reply-To: <20230118230135.szu6a7kvt2mjb3i5@skbuf> References: <20230117185714.3058453-1-netdev@kapio-technology.com> <20230117185714.3058453-3-netdev@kapio-technology.com> <20230117231750.r5jr4hwvpadgopmf@skbuf> <20230118230135.szu6a7kvt2mjb3i5@skbuf> Message-ID: <746b27d5f83b95f17eca18e22843951a@kapio-technology.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] [RFC PATCH net-next 2/5] net: dsa: propagate flags down towards drivers List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladimir Oltean Cc: Andrew Lunn , Alexandre Belloni , Nikolay Aleksandrov , Kurt Kanzenbach , Eric Dumazet , Ivan Vecera , Florian Fainelli , "moderated list:ETHERNET BRIDGE" , Russell King , Roopa Prabhu , kuba@kernel.org, Paolo Abeni , =?UTF-8?Q?Cl=C3=A9ment_L=C3=A9ger?= , Christian Marangi , Woojung Huh , Landen Chao , Jiri Pirko , Hauke Mehrtens , Sean Wang , DENG Qingfang , Claudiu Manoil , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , netdev@vger.kernel.org, open list , "maintainer:MICROCHIP KSZ SERIES ETHERNET SWITCH DRIVER" , "open list:RENESAS RZ/N1 A5PSW SWITCH DRIVER" , davem@davemloft.net On 2023-01-19 00:01, Vladimir Oltean wrote: > On Wed, Jan 18, 2023 at 11:35:08PM +0100, netdev@kapio-technology.com > wrote: >> When the new dynamic flag is true, all drivers will ignore it in patch >> #3, >> so basically nothing will change by that. > > This is not true, because it assumes that DSA never called > port_fdb_add() > up until now for bridge FDB entries with the BR_FDB_STATIC flag unset, > which is incorrect (it did). > > So what will change is that drivers which used to react to those bridge > FDB entries will stop doing so. > So the solution to this problem could be to only set the is_dyn flag in combination with the added_by_user flag. So an 'and' operation with the two in br_switchdev_fdb_populate()?