Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1756901pxb; Wed, 9 Feb 2022 03:59:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbTFsTogpB+VjtWmBBlmglvrRN2OxEQYOxT7OWEr+FuoMZbZLoT/vTP+/eEAHdZ0E5ozGc X-Received: by 2002:a17:902:cf0d:: with SMTP id i13mr1997815plg.141.1644407949018; Wed, 09 Feb 2022 03:59:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644407949; cv=pass; d=google.com; s=arc-20160816; b=TsAOFrEDvYXOeTXbFTLHFi0NcSELOxGPCOTjmnQ3nzJM0+3gpg3jblvVAMLD8x1ti2 3h+x/xuLoMwVpsloG9ZfwLSnCrXbzsOC6zzP//+I5hPZY2qdUOr1FQcDJIpxpurIDiPs 1XPXESYuEtpTpZobS3Ry6gDBUC4UAIdl62tyOQ+h5LZ6dm4MJ2SyK7mAv4iHtal/q/C2 nzjaXAr+FS03o22ZxFvrG1kiZhHSND4vgl3177VeYsgxZOHGWzyfiUiHBcbMBj4n7iut CpHZgU4Fe4xrvG2+5Bvk4LfrOomfDjvwnE/Hm5t+nXSyOSO9c6HUObIqqDVHPSmAzqG7 YEEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=KUxYheqcwJTUHir4nj02XNVT5N7PvHK6CYYisq/vGUM=; b=riC2T7AT1U3sDQQTBPBP+pt+EPYKy43bTcU2hjgL5mQJ590Gm/uth969nGMZkoCBb7 4UJXyCTHXECE0u5AHt3EH/3RcWoQlcH/Yd/1h/1Eiz1ZgW1cyUR3vMgz62OVSy1oKMDU Pak5KJzkEimRdvklFc8uh8n+Jd2bP31jd+mgxgHQGOUKhxw0vlR7+xLpFIYVpC478IqQ GndbTmU7zCX8JTUuBP0QuVT/jf+RL9RyI/uY7TnU3IG1aH/wTLATtGRk2f0H+DKwSxYw Dl1ZD6Lxraeqbbq0TlCJRz+y9J2wm0KYssfG4HlHyh8CWsgy2aPs5LPjPt54GA53UOTN 7AAw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RofB2wcE; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d12si15829874pfl.206.2022.02.09.03.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:59:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RofB2wcE; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D19CDF498AD; Wed, 9 Feb 2022 02:03:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381726AbiBHPqB (ORCPT + 99 others); Tue, 8 Feb 2022 10:46:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381717AbiBHPpY (ORCPT ); Tue, 8 Feb 2022 10:45:24 -0500 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140075.outbound.protection.outlook.com [40.107.14.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 216B7C03FED9; Tue, 8 Feb 2022 07:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WqOQxEIc/9t9xGSBSkjXfECwuAziKY9Oe/MvHy0vV8ADTGfVWq2uYWbgfBIx3fuSGeNzItPspI3VPqp3OQ2ZgyR/Ms4qlD9Swglsye4qcO3C0qT1xD6VROR2/EK1Nyp337cE8wfd0O5KqNAqgZpDe+kszz5TAvh8b2+skBhOubKCE+PncZwGnTveKQ5/Wv+Eg4nTekID2nZX2+rqLz6THvB8B4PhvBLdgEmOKleMnWA6BzP00pYo+7WdfAkjTAwql4otco42Ry6QSHNR4o/+wN1MhaynCXNGquT4zj+tmEVC7rqVR1FJ8y0jfAeTSN4wd6HFupfgRLHRfwImDKlHlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KUxYheqcwJTUHir4nj02XNVT5N7PvHK6CYYisq/vGUM=; b=i22QbxTDQbzn9xsMjBePo7PuIDm1KWQ3aqIyX+C0DqF1yK5Nq/bKNLtOGw6ki7USd00hnaoo4u121uOS3Wjp+kXBq1X0r3CKm1hM+ilUZIf/e3KBHEb+DIZwJ/E8ducM89m6IHB4PCGb+HkjsG/gQUEkqu46u591y5hHBWdZJflyyC87sk+8GFLpxEIYbtRKV7+VS1lIsxbJzp7tMh5xJYHhp3mgpMC/jYLZjU8+30BjBG4BYDnuqrbEc962Tc00+50ztTJIIO7BXxQL6c8LLIWc8UNwigHFmZz+WfffQ5nLMU0svyBfhDXIvdFgdGSLdKs0y3mQch2Ax/sNh6VfiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KUxYheqcwJTUHir4nj02XNVT5N7PvHK6CYYisq/vGUM=; b=RofB2wcEWC07oVhrSf/JpNTXBFGLu3/Yo0b9dUX3eyzMtKdDqwG02TyuJF/LUcoTmCbdOiVoaBshEmkIXiB2eILhG9IYhbL5JTlCOsjVQ1GIyYLwAyCkv+xdupSxsR4d3wkgxJ4epF+B8z1+rj8aU9qNXmnFBWI3sN4fGvJkZ+I= Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by HE1PR04MB3180.eurprd04.prod.outlook.com (2603:10a6:7:22::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.19; Tue, 8 Feb 2022 15:45:15 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::95cf:8c40:b887:a7b9]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::95cf:8c40:b887:a7b9%4]) with mapi id 15.20.4951.019; Tue, 8 Feb 2022 15:45:15 +0000 From: Vladimir Oltean To: Colin Foster CC: "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Jakub Kicinski , "David S. Miller" , "UNGLinuxDriver@microchip.com" , Alexandre Belloni , Claudiu Manoil Subject: Re: [PATCH v5 net-next 3/3] net: mscc: ocelot: use bulk reads for stats Thread-Topic: [PATCH v5 net-next 3/3] net: mscc: ocelot: use bulk reads for stats Thread-Index: AQHYHKbq8GXukjoutEaxquFuvaFzqayJwKKAgAAK3QCAAADugA== Date: Tue, 8 Feb 2022 15:45:15 +0000 Message-ID: <20220208154515.poeg7uartqkae26r@skbuf> References: <20220208044644.359951-1-colin.foster@in-advantage.com> <20220208044644.359951-4-colin.foster@in-advantage.com> <20220208150303.afoabx742j4ijry7@skbuf> <20220208153913.GA4785@euler> In-Reply-To: <20220208153913.GA4785@euler> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5f10980e-d24d-428f-1de4-08d9eb1a005a x-ms-traffictypediagnostic: HE1PR04MB3180:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ROtcp7LuIlmgceQmTp+eQkchbyjEFJxseTDdk00JN/7+acDiwuRC3d08PFtPQuJHOCXl9vQpO2MhUJg7CIB0RAcfHgv1A5FeoK9/ItNqbcbjyazUHRCrq/oSgUalP8LSztPIEPgUbD2srjGz1fLszLzoygYY8cjekzjEr+pvjnoY+oXgInH4PC7jEclcxJRJ3UdqW8hCawATn7aFA598ONg/b1gHZXo54kTMFRvXPJKWKnBPqYHkz2ACeOxrV5ug6EHqrgqzcGPFEkx4UAiFCljrgaW5Mrmr2G+vs0BvGwQXKRlI7P4nT8oT2Y238gsra8pOPbg8hOnH0m4ghwd1acuf+9QOe5I4LYmwRDU+K6QlNbGuEp221ht6n3FpX5KHdUTDf8fpDDrpkGkpbY2D9ZA09394ZWRI4DBXU3qUJQqOWAMYpb+W5IUbQgM6i5irCey0UyEgCTae4B6Pioi5jOe3x4FMaVBNRemjdaeTtBxvJC9HOsD1fmWjVoq3R4oRJrsIBYs9w2jniQ4T5ttYWP5oupbNvQVEx+eEc+uqeQpGm+YiiMyEM3vp91FpVqbzgr1+f1hzHylyAMrAW4HEZrNb/1JekDXaEqiZps/exQ8fF/AM2cPEASUMkyHXUAb+JZvarMhguRj2mQoUA9gwJmzd2bxN1Q1eypBYfOPipPAsVvrY5++O5KEM49fBjP9AxNpmCEueZXve1580MNDZPQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(4636009)(366004)(4744005)(4326008)(38100700002)(5660300002)(6506007)(44832011)(9686003)(6512007)(76116006)(66446008)(64756008)(66946007)(66556008)(8936002)(54906003)(2906002)(8676002)(26005)(186003)(6486002)(71200400001)(1076003)(508600001)(38070700005)(6916009)(122000001)(66476007)(316002)(86362001)(33716001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?oIPks6dKi5SvfmiRSSEcv5Fg4b481/ektWbFoFhphC6ywoT/7js4iaNoFtS9?= =?us-ascii?Q?elmxuzx2eDzb3U2frl/dU8eFgkEG7ndJHa9QvcBCHB9oMgeucSE0XaDMmrva?= =?us-ascii?Q?yIIbyug1JXHOctx/sK38gnQyQG/l2nKbUtE8zDtyBfS/dw+Mf+QwmNnCcNQp?= =?us-ascii?Q?tO08zQJ6h+xH3NhucMSw8JOcbtwMuGl1wjoOf4wHykUZ88+svgTClMcw0UYn?= =?us-ascii?Q?N1SHl7Osip7oX6xPafCvPlhIDArVAzv5X9n3J76um1oDVEiG528FRiLHcOwy?= =?us-ascii?Q?hoDAZnlLB3mjeXcB5aURKAT/NCGjs+BFZbNB4c91ubX4gfTp9CcbQvKCVBde?= =?us-ascii?Q?WQEwlz7X7nZeuz69qaEi9PweY6OIEyPchXIpt9MRr4NYU/AVDNbK7iKFsNk3?= =?us-ascii?Q?HmOCJ/67wTm61ZSpIfv5/CdOdjZKXa2BiI4DefTIyW+MulVCSkh5xsCFhn6l?= =?us-ascii?Q?8KgfeXsMgMXI9OucupFUJy9kDot3o3Dgq6ldFmuciO6OpmPxjiY4iskpLt1g?= =?us-ascii?Q?YCV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= =?us-ascii?Q?js0dml4CUGyGXVoxV+UhHT845OzAwoF33IxHz8TQLpItPYeR2P6LsziLE1xV?= =?us-ascii?Q?qmJUoyyg3McuCFP4euHHnYjB+6mZjtQObCgZT12Pkmah6cwDP1/NTmY5aTBP?= =?us-ascii?Q?5fVhmk5voq1wdJhsJeXon2sk/23uJ/frZFTGWIz+pYYChLzIAbSs0pn5JA5e?= =?us-ascii?Q?NF6dtEu+Nw3Zn1tn+io4MlaJq3tHPLi4qGl7Lr3qu82/?= Content-Type: text/plain; charset="us-ascii" Content-ID: <869712DA8CE1F247A49672AF7F1A13A3@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f10980e-d24d-428f-1de4-08d9eb1a005a X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Feb 2022 15:45:15.6125 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dC1O+vsOqrYKxSzimJsvdWypEhkcDCMnDZUpZqbZDLgG+jAp0q4rr1il5/FDFdkmF8XETsSborPsh6jekD7qfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3180 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Feb 08, 2022 at 07:41:56AM -0800, Colin Foster wrote: > I see that now. It is confusing and I'll clear it up. I never caught > this because I'm testing in a setup where port 0 is the CPU port, so I > can't get ethtool stats. Thanks! You can retrieve the stats on the CPU port, as they are appended to the ethtool stats of the DSA master, prefixed with "p%02d_", cpu_dp->index. ethtool -S eth0 | grep -v ': 0' # where eth0 is the DSA master=