Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp129104rwb; Wed, 18 Jan 2023 15:14:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXtUIh6QcVNew4yfDWaurKFt3TQF/ykipBlCS9YX+65oB5ezEMB4BcTrqNuHrcbOji6WFPma X-Received: by 2002:a05:6a20:b924:b0:ad:79bb:7485 with SMTP id fe36-20020a056a20b92400b000ad79bb7485mr7973319pzb.11.1674083681810; Wed, 18 Jan 2023 15:14:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674083681; cv=none; d=google.com; s=arc-20160816; b=AQ3ymkuIAx+KrbDK3wLocmicstNFlRasU6CMon6sKi3H1DNlJvFhbl/eB30ppW+8J+ S+zmOobnRKTvGjMQ05k9XjgzPQvjggb1SXF1pYGXGxyt4Ixwm5VrCwFXc7gA6LsprK/o iaBFU9hu7KH3hzpJvr/4/OcI+kkEw+Krn5C08cjK/wo+X4J3Sogi68kz32AeNwtszNVO NNnuje097DeGG0Hsm3mHdSO8dmU7MusViHlVQg/6RPR6yVhhzSKOV+DXKPdpY/Yk+4/h DV9V6e7TRxrvlaVAZ27koYgUuLQeewSGN4EIu9wSm9GUGiy+Ydxa+GrugqnlBc3i3uEW sZ+w== 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=JG0zmDr4Gx7JTYrA4JUjYF+9TusUlPQwAzE14ZbaLBE=; b=htI7PfZrWRgKS7wUgcNxi1Q0D4sZ9HtftFIgyCamWxT3P993rcRFNRR8I/aKFnUq4n nmcfsSvnB+rwn/Tg0mAODVGtZAZf0b4iLO+9hjTkFFixua5JP8ynM6jvN/SUd4z5vM99 IGJGVYt7b98jl1qDXfpRWw7esgznUbC/aYDu7o7WAT6vxfIg4F2vgwjBb/N4tMK2ja2H oAWz8l4PLpyyPP4IGW8LUlA3auLMqFWaAP0iJIC9RUbIhVyCC677FXIv7ZhhW/lHrx16 TtlYB6Jdfzs5L5aXv9Dh7OAULRY2Dz3pXLvpT5hSOicJ4zZyek79Je2WI8mv2c7Hi7Z1 XWGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oRqBiOJY; 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 o25-20020a635a19000000b004aef9c39bb5si32847104pgb.393.2023.01.18.15.14.36; Wed, 18 Jan 2023 15:14:41 -0800 (PST) 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=oRqBiOJY; 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 S229916AbjARXBo (ORCPT + 46 others); Wed, 18 Jan 2023 18:01:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjARXBm (ORCPT ); Wed, 18 Jan 2023 18:01:42 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D73BD4FC35; Wed, 18 Jan 2023 15:01:40 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id hw16so1153383ejc.10; Wed, 18 Jan 2023 15:01:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=JG0zmDr4Gx7JTYrA4JUjYF+9TusUlPQwAzE14ZbaLBE=; b=oRqBiOJYIlMdDowmL/wHGABFcI0fDixl2PMB36ctD5uSKk3azFGtf6qd2Fvk85nbjC RZGiY6WOS6aL3GADhFTaSpq9sDvNd66O4zvJIfSzbuoiU8TfqAStjiekALks5NkGSaKe ovGZ8gH0HmxO9jFlluSL74dBYh1vn5KfO7NSBBuv+DCGaPm6jsuW1hq8QeP+fNTfmlqX 3IcskUgDBjlFzRib6paxCj+S90vgVnJVBiNY0ccVMPpVBJ9PeZVJOHdXXs+2uIBtQoT/ vlsHkNs0iO6OaL9F9gRjvD02YML4zxlAojbWSyksCeYa74+TLtrx2SxLVb3arsFe5b7r ZhGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=JG0zmDr4Gx7JTYrA4JUjYF+9TusUlPQwAzE14ZbaLBE=; b=3KyCHuspMJPJVqNIBs8eJvSsb0B8lAFbzzjJRt9QmrH0LkaKJTyqos4GncvXh9n6VD UgTEAJ2VKj57KpaKi8ZNu9Zs8J1SgRRt1ckX4X7wQZPJkjxEdXP2e3/j3RO2ziiM2ZmU kYLZ/tTB2Sgk5LkuffCZ3+C2VzBkf+uAwkBuMbwtHklAt5Je9L8PetSahda6MnuVnbnA xy7n2UwkkJ1EC89Ns+p8c1pgPRsGcjgJkADkmQrA/poT1ajBhW5Wms2kw6HTL5olkz22 +keeC+fRmhR65gqhMM1GDG09IvveFj9Pof/JncqSiEhaJ4Gsj5D+js4svCvX2t/LQX5p FgDg== X-Gm-Message-State: AFqh2koC9x8S2KT1jN8X++boGvEe3EScoKlSB1WmU2t+1HDRl8S+rFSd bJLQ7o+fJocj6z22aDnRAB0= X-Received: by 2002:a17:907:1019:b0:84c:69f8:2ec2 with SMTP id ox25-20020a170907101900b0084c69f82ec2mr8598505ejb.22.1674082899134; Wed, 18 Jan 2023 15:01:39 -0800 (PST) Received: from skbuf ([188.27.185.42]) by smtp.gmail.com with ESMTPSA id k11-20020a1709062a4b00b0073022b796a7sm15579629eje.93.2023.01.18.15.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 15:01:38 -0800 (PST) Date: Thu, 19 Jan 2023 01:01:35 +0200 From: Vladimir Oltean To: netdev@kapio-technology.com 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 , Claudiu Manoil , Alexandre Belloni , =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Jiri Pirko , Ivan Vecera , Roopa Prabhu , Nikolay Aleksandrov , Russell King , Christian Marangi , 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" Subject: Re: [RFC PATCH net-next 2/5] net: dsa: propagate flags down towards drivers Message-ID: <20230118230135.szu6a7kvt2mjb3i5@skbuf> References: <20230117185714.3058453-1-netdev@kapio-technology.com> <20230117185714.3058453-3-netdev@kapio-technology.com> <20230117231750.r5jr4hwvpadgopmf@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Wed, Jan 18, 2023 at 11:35:08PM +0100, netdev@kapio-technology.com wrote: > I am not sure I understand you entirely. > From my standpoint I see it as so: that until now any fdb entry coming to > port_fdb_add() (or port_fdb_del()) are seen as static entries. And this > changes nothing with respect to those static entries as how drivers handle > them. This is true; it is implicit that the port_fdb_add() and port_fdb_del() DSA methods request switches to operate on static FDB entries (in hardware). > 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. > Then in patch #5 the dynamic flag is handled by the mv88e6xxx driver. > > I don't know the assisted_learning_on_cpu_port feature you mention, but > there has still not been anything but static entries going towards > port_fdb_add() yet... For starters, you can read the commit message of the patch that introduced it, which is d5f19486cee7 ("net: dsa: listen for SWITCHDEV_{FDB,DEL}_ADD_TO_DEVICE on foreign bridge neighbors").