Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp93848rwd; Tue, 6 Jun 2023 19:09:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Aos0VDHBDRz46e27J6FGqr11pHQ4FGPKp+0QAHV9Els1i33ocfdU8zCYKqwRCS7mU0Hi/ X-Received: by 2002:a05:6a20:c19c:b0:111:52a4:7f7e with SMTP id bg28-20020a056a20c19c00b0011152a47f7emr918147pzb.28.1686103753545; Tue, 06 Jun 2023 19:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686103753; cv=none; d=google.com; s=arc-20160816; b=XO0ybxPwJsP4U/abeorallfXagduE29QSrxq6491hclegIDVBorlrtzzy52eibVjup /fpIWcm6D7czvdqr0EH53z3CuAfePiMgB/rRvfc49HPN6IbDLKjfv3yoSTw+a8s3xNMb 6ylMTPg2UFMZXsoZImzvISakKDm72yXhkoqOAcdsJY6XJQcsHj3NhFIIAr+eILBEPO5V NSM5vQOK2+RRp3pmIVvHZFMVdCXNizFJDlNzu+ew9xl/+9IcTMZuQRX75lbGJDbroMuo d/ccSDTNsPp810VU0W5ZNk3LT9cpXElwRup4oE/Ak8JDRWXb7uAeor1Um6xS4tlefXk5 Ubaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yQG2XseWZx66Q++H1nHI1/v1aEHFB81Xu3KDBrneBd4=; b=fySwRNfW+gg99SWqkSsuyn1ypepYIJigxwQE0912cjgoDKT8PC54s2Mv7MnmigKoNn V46zlX77JtBYkuC0Xmh0T1rinJPHZeUe4lj64wil/ucmlbGgm+Q2JIrK3ofi2pT+LtYJ xHm/jGx9TEnvLZOUBI9bA4acvD0+nw/04wOzrO1m5cs0pNXKc5N5KiHfeEWhV0RhCowA SuixvPcy+BBwvTLRQyPEmQlzxUOr5mPz+CNCT+xsBM3EHY3NMKlXNliaIZZKlSrJE7XQ Fr6LW5/tuokqWSYhDwggdNIhcxPRpbeqELBUeqcJMai91WiOImYZqvhTBMPVvFvmvIne cR+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mCWRdAv9; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a170902860a00b001b1be13179csi7818584plo.385.2023.06.06.19.09.01; Tue, 06 Jun 2023 19:09:13 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mCWRdAv9; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234853AbjFGBzR (ORCPT + 99 others); Tue, 6 Jun 2023 21:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240636AbjFGBy5 (ORCPT ); Tue, 6 Jun 2023 21:54:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 849F2196; Tue, 6 Jun 2023 18:54:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0B2786316E; Wed, 7 Jun 2023 01:54:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B06EC433EF; Wed, 7 Jun 2023 01:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686102895; bh=L5++KAY1MZjlyXEgE62/aSSXjGPmyMxfne3vd2s3Qh0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mCWRdAv9G9mqhBqQL78XetAXwO85iy64XPDCYeMLzla2fz2hjB5WC6W++watZjd0s oaLdHFMuRkCtMN8Kuhq8OwNylmDR1p439v2jHKPaCmwerg/RNg/h8GmPHlonUjSRE9 sgAfLkEhP/2C5uFWAg0e1Kfd+sihCI6EXlz8mp2x9xvkFRcIccQXLQYybbo+wuLxcs XHkx7gPJn+QqcQMpgdLj9yYAODmRwZknUfyZCN6DdQRAtgUWY4mUmX+jbi/1F9fS6O IdrfgStPm1AbFEOvapklC8HpviuJTVRt9pHfufo6OxwEEKqklpPuLBpKQpCTEKaW6m McbRq3mezKn1g== Date: Tue, 6 Jun 2023 18:54:53 -0700 From: Jakub Kicinski To: Justin Chen Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com, florian.fainelli@broadcom.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, opendmb@gmail.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, richardcochran@gmail.com, sumit.semwal@linaro.org, christian.koenig@amd.com, simon.horman@corigine.com Subject: Re: [PATCH net-next v6 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller Message-ID: <20230606185453.582d3831@kernel.org> In-Reply-To: <8601be87-4bcb-8e6b-5124-1c63150c7c40@broadcom.com> References: <1685657551-38291-1-git-send-email-justin.chen@broadcom.com> <1685657551-38291-4-git-send-email-justin.chen@broadcom.com> <20230602235859.79042ff0@kernel.org> <956dc20f-386c-f4fe-b827-1a749ee8af02@broadcom.com> <20230606171605.3c20ae79@kernel.org> <8601be87-4bcb-8e6b-5124-1c63150c7c40@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, 6 Jun 2023 18:35:51 -0700 Justin Chen wrote: > > Also - can you describe how you can have multiple netdevs for > > the same MAC? > > Not netdevs per se, but packets can be redirected to an offload > co-processor. How is the redirecting configured? Could you split this patch into basic netdev datapath, and then as separate patches support for ethtool configuration features, each with its own patch? This will make it easier for area experts to review. The base patch can probably include these: + .get_drvinfo = bcmasp_get_drvinfo, + .get_link = ethtool_op_get_link, + .get_link_ksettings = phy_ethtool_get_link_ksettings, + .set_link_ksettings = phy_ethtool_set_link_ksettings, + .get_msglevel = bcmasp_get_msglevel, + .set_msglevel = bcmasp_set_msglevel, WoL can be a separate patch: + .get_wol = bcmasp_get_wol, + .set_wol = bcmasp_set_wol, Stats a separate patch: + .get_strings = bcmasp_get_strings, + .get_ethtool_stats = bcmasp_get_ethtool_stats, + .get_sset_count = bcmasp_get_sset_count, + .nway_reset = phy_ethtool_nway_reset, Flow steering separate: + .get_rxnfc = bcmasp_get_rxnfc, + .set_rxnfc = bcmasp_set_rxnfc, EEE separate: + .set_eee = bcmasp_set_eee, + .get_eee = bcmasp_get_eee,