Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4893178rwl; Tue, 28 Mar 2023 12:53:14 -0700 (PDT) X-Google-Smtp-Source: AKy350asQ3gleZNcj47CwwBoM0IGE4+gtz/1ABZH0fLkt8Zv++UcrGCZ3lRJ2IJSUwNfpF7WNEr+ X-Received: by 2002:a17:903:3293:b0:1a0:428b:d8c5 with SMTP id jh19-20020a170903329300b001a0428bd8c5mr14324866plb.45.1680033194290; Tue, 28 Mar 2023 12:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680033194; cv=none; d=google.com; s=arc-20160816; b=uPLRtki5xOfTGNkKZSwhBR03Idu1B2k1rTvkOalaM7Lc22jTwougYMJkGmhZcfdilG FgLFGQkO9xChTKDxCcQRAD1mVSz2inOGUyqSEjwp7hHfWgrHrictCby7OcCvl/AjS308 fdTusyEBwWkxAl0ONOFqEBzpx5TwMkHQSDQfdtg+g4wcpmhKkYhynxI9IpiskCg0839T vcgc1WJYvOe1qAGxRtfavGBE8wMwRr3Vur3vGwIxCWEp44QCZ/WubwzVrundBqrMH0GS PsR5+Kn1cdaDmfrtlImVfNtFP6/lj6mvabLMsmANZSIaUQJbKhmXV3cXA/fbKxALExTO 4HIg== 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=KJpCUFzy26GVZTN44pAfo5lCGWHYesH8xgAbWBlI/bg=; b=bcobQhOiok/QD1KmS3Snobkg7wngUtHOfo/HMn2SLsAfG6YI+E03c2zfySnRhFy7J2 UeAXEi0iInqwkPtAAsF5G1qzCT51glojVBoECRdN1jQ/+6Lp2/uX9qZ7zcDUsmQbItXJ 1NOuK6tlUCeaiDPDD+qStjnhDa1kYnyHsDLBDJmD4StOlF+lPj0dqrxMO/s4MbnuC7Oe xSpGHtbqP/lKrZ+OFOKhP4/mieMr4Mgg39TnyYdtRji7tNqvdvyy2LpbmAZFKdURSGaj x64yO+uti6brRclr00KbmuGPq/IMy3DIPqNOwsjMMU3h/d9H1Yh/BwJURj8ZqncHgDSl /RDA== 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 s11-20020a170902c64b00b001a05e6bd125si28727113pls.25.2023.03.28.12.53.01; Tue, 28 Mar 2023 12:53:14 -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 S229708AbjC1TsI (ORCPT + 99 others); Tue, 28 Mar 2023 15:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjC1TsG (ORCPT ); Tue, 28 Mar 2023 15:48:06 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4DF2172C; Tue, 28 Mar 2023 12:48:04 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 3DEC318839E9; Tue, 28 Mar 2023 19:48:03 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 369182500389; Tue, 28 Mar 2023 19:48:03 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 2E8489B403E2; Tue, 28 Mar 2023 19:48:03 +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 7BA9491201E3; Tue, 28 Mar 2023 19:48:02 +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: <20230328114943.4mibmn2icutcio4m@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> <87ileljfwo.fsf@kapio-technology.com> <20230328114943.4mibmn2icutcio4m@skbuf> Date: Tue, 28 Mar 2023 21:45:26 +0200 Message-ID: <87cz4slkx5.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 14:49, Vladimir Oltean wrote: > On Tue, Mar 28, 2023 at 01:04:23PM +0200, Hans Schultz wrote: >> 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'. > > Why not? I find it reasonable that the software bridge does not age out > a dynamic FDB entry that is offloaded to hardware... the hardware should > do that ("dynamic" being the key). 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? Thus other drivers that don't support the flag yet will install a static entry in HW and the bridge will age it out as there is no offloaded flag on. For the mv88e6xxx it will set the offloaded flag and HW will age it. > At least, I find it more reasonable > than the current behavior, where the bridge notifies dynamic FDB entries > to switchdev, but doesn't say they're dynamic, and switchdev treats them > as static, so they don't roam from one bridge port to another until > software sees a packet with that MAC DA, and they have the potential of > blocking traffic because of that. >