Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3050467rwl; Mon, 27 Mar 2023 08:35:36 -0700 (PDT) X-Google-Smtp-Source: AKy350ZvKiARbEAsDVV7h/yhJMnKrjy0+PXT24HMfdo0d9n5XKgFxONX0mexXGK6GUYKLiKS4Piq X-Received: by 2002:aa7:c9d6:0:b0:4f9:db7b:b6b4 with SMTP id i22-20020aa7c9d6000000b004f9db7bb6b4mr11026956edt.40.1679931336250; Mon, 27 Mar 2023 08:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679931336; cv=none; d=google.com; s=arc-20160816; b=cjEb7L7F3FAL8JfQkf95p2erwGYb14ZnkHlIOjFfzS6FVvuUtWD29YHVAKYRt4mnXP uBFo3g/r1lKalqb4B/RB4/VQurEYqFKRO4XzN+8M7DC91iAf/miEHTx0oeMEwESOhp5T p4PDIaJcql/jjg57tCQxbyFo+ARopkos+KSIBS8GLOgHqstdy3Zw5eqKdV7tq408L2jQ rrsnZREXYeoqm6MeRg2HGbtMMcmoRCILL7GWaZngKH7wyWBchR2sOnd6gigXkbz3XXdL 3fKkEIUhbGAnF9adoIQwdGHBOjNW3W2IxsYrxfqt/9sBIUjSxBDaWOhoRNxm4iy4Ymr8 lfjA== 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=fAGnOsEqdtlnj/68161BxQ54mpbznUmWnS+8YnLr570=; b=G3jaHZkoRe9sp0ZPZtAWY7V66P5b/OvV6nIatgk03CBvT12Ajf4wo5Gkm4NQWfXD2X 52HqCub1Z1ScryZLID9thqvRm97TEaI91EvloBxS8LtNaHTc3siEVrDNwp/upXsPwvGc cIoT6MXCm2nyNUBH4ZAngJwgKPHYz6RuF1fNIDf66gvL+ssQzjVLCWzUA3UrOL/AMs1a afvLuGAcoBLNrKMAjbk/CxagSYOxc2tplqa+jKqlkke3ic298ZbUME7fAuujibK0cgBQ IiFrYJ+IEeMl3OIcqYR4kq9MAK1KpTYN94nC27xDq4s+v9w3A1ksWm7tHCanQ57MIsbC dQog== 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 u4-20020aa7d984000000b004fbbd7bee7csi10897356eds.58.2023.03.27.08.35.11; Mon, 27 Mar 2023 08:35:36 -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 S232882AbjC0PeJ (ORCPT + 99 others); Mon, 27 Mar 2023 11:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbjC0PeI (ORCPT ); Mon, 27 Mar 2023 11:34:08 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F3B5E5; Mon, 27 Mar 2023 08:34:06 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id EAE071884409; Mon, 27 Mar 2023 15:34:03 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id D5765250394A; Mon, 27 Mar 2023 15:34:03 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id BE7339B403E4; Mon, 27 Mar 2023 15:34: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 DEB2891201E3; Mon, 27 Mar 2023 15:34: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: <20230327115206.jk5q5l753aoelwus@skbuf> References: <20230318141010.513424-1-netdev@kapio-technology.com> <20230318141010.513424-3-netdev@kapio-technology.com> <20230327115206.jk5q5l753aoelwus@skbuf> Date: Mon, 27 Mar 2023 17:31:26 +0200 Message-ID: <87355qb48h.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 Mon, Mar 27, 2023 at 14:52, Vladimir Oltean wrote: > > By the way, there is a behavior change here. > > Before: > > $ ip link add br0 type bridge && ip link set br0 up > $ ip link set swp0 master br0 && ip link set swp0 up > $ bridge fdb add dev swp0 00:01:02:03:04:05 master dynamic > [ 70.010181] mscc_felix 0000:00:00.5: felix_fdb_add: port 0 addr 00:01:02:03:04:05 vid 0 > [ 70.019105] mscc_felix 0000:00:00.5: felix_fdb_add: port 0 addr 00:01:02:03:04:05 vid 1 > .... 5 minutes later > [ 371.686935] mscc_felix 0000:00:00.5: felix_fdb_del: port 0 addr 00:01:02:03:04:05 vid 1 > [ 371.695449] mscc_felix 0000:00:00.5: felix_fdb_del: port 0 addr 00:01:02:03:04:05 vid 0 > $ bridge fdb | grep 00:01:02:03:04:05 > > After: > > $ ip link add br0 type bridge && ip link set br0 up > $ ip link set swp0 master br0 && ip link set swp0 up > $ bridge fdb add dev swp0 00:01:02:03:04:05 master dynamic > [ 222.071492] mscc_felix 0000:00:00.5: felix_fdb_add: port 0 addr 00:01:02:03:04:05 vid 0 flags 0x1 > [ 222.081154] mscc_felix 0000:00:00.5: felix_fdb_add: port 0 addr 00:01:02:03:04:05 vid 1 flags 0x1 > .... 5 minutes later > $ bridge fdb | grep 00:01:02:03:04:05 > 00:01:02:03:04:05 dev swp0 vlan 1 offload master br0 stale > 00:01:02:03:04:05 dev swp0 offload master br0 stale > 00:01:02:03:04:05 dev swp0 vlan 1 self > 00:01:02:03:04:05 dev swp0 self > > As you can see, the behavior is not identical, and it made more sense > before. I see this is Felix Ocelot and there is no changes in this patchset that affects Felix Ocelot. Thus I am quite sure the results will be the same without this patchset, ergo it must be because of another patch. All that is done here in the DSA layer is to pass on an extra field and add an extra check that will always pass in the case of this flag.