Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2808049rwb; Sun, 20 Nov 2022 01:55:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf7OLNDB7YiyhJfBtipM/oMiqPdp+rzw3rjq/SQQOgYQbZMrUIQ2GHcR7knYh/b30kywHqxX X-Received: by 2002:a17:906:2810:b0:7b2:7b45:2bf6 with SMTP id r16-20020a170906281000b007b27b452bf6mr11548808ejc.467.1668938148125; Sun, 20 Nov 2022 01:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668938148; cv=none; d=google.com; s=arc-20160816; b=jYvYfSVG7efr1iDM9meOhJO+9zqO8Qwsq5xJ28/Y5r2sEDxi78sjWmvzqnWhcYe2xk SEH4EPndBFNH4f74l1gXzrGwdjl+NHEJpJIIsjiDrSvqXDQKcPTVdIhxluxDroePPAIV d1OxFJrJptrs/5asGpCDWbrBimWckuQl2ohIyLy1faZkNntPyFeiVAarI0zbLuNR7K6F YtaeVtfA6yIduYt9YlJtNEo7R1k5UBb2czpD/HmkRvrkM3g6dvszm8ZUCZov9oGcAPOA lNXENmF7tVQnfvw8rgSoEdRhhRIaVyzQ1OB9NcHsstZPCnE03M1pUEoYiiJBIcROaD8s zUOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=yvC3ONZX6gdxBjYjGtRunxJvZlxdJvsTRLHwO8PaEGA=; b=Ro8ttDff5/a+aWK//3zai0egtoei8jUwHDstZpZR21bFU0Smz6QVyctxM2hyMKjYGK m5Ytt4KMtPXFRXFrRePDayJsrbh63pAb7xtO1GZZetwQ+VkJ7Nqa5bNW8NuaT2AvWvtj IO+o2jzxsOABsqSlFGKBvGpTfTni5tKbupOT+8lS3Hi17UpmvD9FTPQIt9WohFSZLOv+ NOSkeHgMPcdwpiOnMHgvAdD4wRN9O+3mi+N/t/Ch9XlK7ub3b/n5zH3I0Qh0ePUjjIF1 /cKCaAd4i4p8kyjGjX7E/Rxp43nGsZOm1d5aIs7bNhFrUr8XrAmsw6Pur8FGIBjSPSv9 zgMQ== 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 ta6-20020a1709078c0600b007ae0e8f59a6si6330092ejc.821.2022.11.20.01.55.18; Sun, 20 Nov 2022 01:55:48 -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; 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 S229605AbiKTJeP (ORCPT + 92 others); Sun, 20 Nov 2022 04:34:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiKTJeK (ORCPT ); Sun, 20 Nov 2022 04:34:10 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2A661CFFE; Sun, 20 Nov 2022 01:34:05 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id F16D318833EC; Sun, 20 Nov 2022 09:33:57 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id E9CED2500516; Sun, 20 Nov 2022 09:33:57 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id BC6E491201E4; Sun, 20 Nov 2022 09:33:57 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Sun, 20 Nov 2022 10:33:57 +0100 From: netdev@kapio-technology.com To: Vladimir Oltean Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Eric Dumazet , Paolo Abeni , open list Subject: Re: [PATCH v8 net-next 2/2] net: dsa: mv88e6xxx: mac-auth/MAB implementation In-Reply-To: <20221115222312.lix6xpvddjbsmoac@skbuf> References: <20221112203748.68995-1-netdev@kapio-technology.com> <20221112203748.68995-1-netdev@kapio-technology.com> <20221112203748.68995-3-netdev@kapio-technology.com> <20221112203748.68995-3-netdev@kapio-technology.com> <20221115222312.lix6xpvddjbsmoac@skbuf> User-Agent: Gigahost Webmail Message-ID: X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 2022-11-15 23:23, Vladimir Oltean wrote: > > How much (and what) do you plan to add to switchdev.{c,h} in the > future? > It's a bit arbitrary to put only mv88e6xxx_handle_violation() in a file > called switchdev.c. > > port_fdb_add(), port_mdb_add(), port_vlan_add(), port_vlan_filtering(), > etc etc, are all switchdev things. Anyway. > Firstly, those functions you list are ops functions, while what is in switchdev.{c,h} is not, secondly the functions in switchdev.{c,h} are the first to send switchdev messages like SWITCHDEV_FDB_ADD_TO_BRIDGE events. Furthermore I think that chip.c is bloated, but I also do plan to add more to switchdev.{c,h}, and there can be others adding in the future...