Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2312313rwl; Thu, 30 Mar 2023 08:40:18 -0700 (PDT) X-Google-Smtp-Source: AKy350a2BvyxsgnFudVwj/Hl/6ML/+eynLhDfS/mKmWQ9CjEUo2GbnhbIAJKORkrT6YdFTRD4mjg X-Received: by 2002:a05:6402:524e:b0:502:465:28e0 with SMTP id t14-20020a056402524e00b00502046528e0mr2716848edd.0.1680190818013; Thu, 30 Mar 2023 08:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680190817; cv=none; d=google.com; s=arc-20160816; b=EULbO8PALbsE62mFx3vKK4WqAnI6KStdBaCO9ws/hxZfBkhu6OCHmDPPuzWQ822l+v ZrsdZAXZ4IgpaIP+Tjx8DdL/Z4tgIGb8od5YXtcxoULvIVN4HWwnJsfaz1xHd7KJIaRj yGpLg2pJsBYbRDy7Q24FOHmHGhiJM4FlpE2uN4uhP4wVG2TnqqJLULK7HMlJL4GyIvdj V1pcHuohbVxrNcteYpDgcXF9hWrbShHcLAOP4g7CI04w6khN0wbM2Z7CZ2lKvJIIdySp uZSS7AzrWBmTlMyKruNRV6AfFPKOluq7/uNZOrHxaeNUWbY/Dl9tJSN30WEEyUSNKBwl 69HA== 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=0RrYouZMF0RK3kwKq6f5Px2GDziKojcz/nRXKC5+wrI=; b=VpkZTL3ZIzMKuP4+gHI9vd89nfBB7escyAcSDVtUwtp38PhL69eXK4phWmCEl3qU+S tSyrrD7Ln9Iud8C93D+mzSEiGSLmvvcsbZ0jx1Z4JWXZeKm+o2BaDNVjS9QgvxLAtUg5 0UzxL/UWLxTX0LfdcjKLmlb5BWl3PekeAk335ASlCy0Mq8M0x/kliYaDMgrdOVWkk9sp 7X1a3GNg1MnDGulm+ADuP7sVhJESZjhe5FZ6cMVgptxds6r/gxAWGQiQtXQ78vNIL4oq gdBq/Smm6pLSxXCnhl1CqSyucxndMOzhKuum6ZtVlmSitFwzNKjvoYXiHswcdx+LmBtl llzw== 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 k15-20020a056402048f00b004ab4f62171asi75635edv.279.2023.03.30.08.39.30; Thu, 30 Mar 2023 08:40:17 -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 S233185AbjC3Phs (ORCPT + 99 others); Thu, 30 Mar 2023 11:37:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233132AbjC3Phq (ORCPT ); Thu, 30 Mar 2023 11:37:46 -0400 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A182976F; Thu, 30 Mar 2023 08:37:26 -0700 (PDT) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id BAD591883842; Thu, 30 Mar 2023 15:37:22 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id AC9BA2500389; Thu, 30 Mar 2023 15:37:22 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id A74189B403E2; Thu, 30 Mar 2023 15:37:22 +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 04E2D91201E3; Thu, 30 Mar 2023 15:37:22 +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: <20230330150752.gdquw5kudtrqgzyz@skbuf> References: <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> <20230330130936.hxme34qrqwolvpsh@skbuf> <875yaimgro.fsf@kapio-technology.com> <20230330150752.gdquw5kudtrqgzyz@skbuf> Date: Thu, 30 Mar 2023 17:34:44 +0200 Message-ID: <877cuy6ynf.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 Thu, Mar 30, 2023 at 18:07, Vladimir Oltean wrote: > > Then, make DSA decide whether to handle the "added_by_user && !is_static" > combination or not, based on the presence of the DSA_FDB_FLAG_DYNAMIC > flag, which will be set in ds->supported_fdb_flags only for the mv88e6xxx > driver. Okay, so this will require a new function in the DSA layer that sets which flags are supported and that the driver will call on initialization. Where (in the DSA layer) should such a function be placed and what should it be called?