From patchwork Fri Jun 9 13:59:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 13273979 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2AEF17741 for ; Fri, 9 Jun 2023 13:59:37 +0000 (UTC) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2074.outbound.protection.outlook.com [40.107.22.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48FA830FA; Fri, 9 Jun 2023 06:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=odNU2mt797MIjRH1PeZQwwT0vn8aw6vvoyauBwdpgivGcIK4WJIS52JJibi9GcozdAPHQ/YhMSn/2g2dST/eNL0jA07t8QAriMkPCNal7Pam1qF3a/CDNOcOry/cENVuWWTqBrr44Hd2vNTymBud39KrRG6p+XQSS2ngfOnPjXvHPU0dhPPdeEgu4B8Dj7ADV3sRBwqbCtWhmkkl3LdZ2nvNw/Rcoq5Oe76KybZ/EoBN5NN6DsipUcgDQC35w6verI8q97JQSXNnHWTcFxDRQmqBFrhJy3Ww9SlJ6xR1xVeGX+GGP0mhm1/QUf/HIa7z0c1zkD4xXts/iZc4ZwpF5Q== 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=IIpqB7Vyc+Be0KwmZrP2Ta/HV37bUV/Tap2HpZ2YhRE=; b=VyKjrnEhz3ZZry7D1LP8iosns2WmiO0a81kte72CUiLlAbmCdfkz2ddTPxpHAXt4WjkDnrRp6Af/VtHHlygpVGnIINuJHgG39ETzo1sIENM0QM7M8crLwB6tP0wGB0l41ZWyF0Lqh6ZR309jhAVoxmaj1MFrFvOlFB1MI683H0+t88OeC1+HZ59y4mbmlZbUrrO9bQOCqhRMkxjKUXjJe7kQu4tjACtjFJQIApG1CQFAeK7w2kReVReUit+4XZE3yR3+B/T1/yt4E8qN1nsrJfekPCUGLJ9ZKQKsWIwwnMNKUkNKP5B/v3D8XTOVfNuW2Iu5+6aD3tcBsefVrDQyjw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; 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=IIpqB7Vyc+Be0KwmZrP2Ta/HV37bUV/Tap2HpZ2YhRE=; b=nhkFFks+Pcsmq8zS6xrHGxnhK25qgTTACKvWZpG3mfUVareV5W8QRrLXgocmhEfPjcHdkWlHFusHr9sXSHWPrrG8RgHNqjmjXO0YjMKeIgo2+5OgLPEhAykAKsw+o6S9R4PaXThmBhpOpbkWtkSAbHue8xSNnjnfQoJ/GrIUMUA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by AM0PR04MB7139.eurprd04.prod.outlook.com (2603:10a6:208:19d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.41; Fri, 9 Jun 2023 13:59:31 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::c40e:d76:fd88:f460]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::c40e:d76:fd88:f460%4]) with mapi id 15.20.6455.030; Fri, 9 Jun 2023 13:59:29 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Vinicius Costa Gomes , Kurt Kanzenbach , Xiaoliang Yang , Mohammad Athari Bin Ismail , linux-kernel@vger.kernel.org, Jesse Brandeburg , Tony Nguyen , intel-wired-lan@lists.osuosl.org, Muhammad Husaini Zulkifli Subject: [PATCH net-next 0/2] Fixes for taprio xstats Date: Fri, 9 Jun 2023 16:59:15 +0300 Message-Id: <20230609135917.1084327-1-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: FR0P281CA0091.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::11) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|AM0PR04MB7139:EE_ X-MS-Office365-Filtering-Correlation-Id: 84ff2884-2945-491a-754d-08db68f1be6c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3smGqKLduG9IIezcfQfi9bRbvEAgp/2jZcalvkgXbG+79368j+RzlwnLuAO2U0Usryv+THbVa9Rh/yVNf01Q6JcqEtl8XTSYG5T+HARwXX0mI/mVw5RownqIB2x/aRF7NhpcKUOEeLMmMm2G7VzDN3yUN/+nV2W+t8dURyQphCqmasfUj/CIEmhR2eTPu9Kwe1kafXl4vgtDz8+lt7AIcmsfWAJMhXa8WAH8uCxoeULjQWFio49QiAzhfP+RrFIv5WDb8JzMoDim/AyaxPg56M6H1gMcZWCAe/SFJbI7GFttiirJWnE350rxiYYFhTHtB0/8zr18D4zEB4CQfXgyec4pQpKGh7KQLW+8tMO+90SdTSxKopc3N5QYzyzdjIdXkcmOF6UzWnY8QiqLfb3zoIlB1RQyeyPqHcPxpt84PQWUjqWpP+2iTLizX+2IsrRDFnQsKjqQglnHEZAmWduKBRwmpzbCy3XlFY1LnWF3ZXee8h3HVPVjE6V70w3EfDaDcwKroYgOtc7MYK91CAIuVGN8bF81EynMQCkQypgkS/TaYWC/kucM+kfhTdE3VpAA4/3BYgSc2GOKQZWqO4iLnF237yeCkzPpAj6j07ujh+9pf8rOftwraFOVK+n87Tqc X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(346002)(39860400002)(396003)(136003)(366004)(451199021)(66946007)(66476007)(316002)(6666004)(66556008)(54906003)(6916009)(4326008)(478600001)(86362001)(36756003)(6506007)(1076003)(26005)(6512007)(186003)(83380400001)(41300700001)(8936002)(8676002)(7416002)(44832011)(4744005)(2906002)(5660300002)(52116002)(6486002)(2616005)(38350700002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WhUZcWzyAMMjGyh3z5/AHEfo4zSd3ssZLRm1UxmL6DwbQM/8SyUaSh1oyLoWba12IFMtvtESeyHJ/r9dIEifT70FCqYjGYIcG1PEewxA4vMZYg7W/qOUHRVVPC+EKkHtoh/FHl+XhkNtoBjmN8pyiV8FUwqwd+LE+TPxpQa0QCPM5nmSVLXXEKXyvd7r2I7PKZzyZSZSGrVKRh8juironqWoUHuRIXotSp1/lD9+ZyCyzaHTF6VkhrYu6uNq/xfv15qoZ1De0mDq5dAuOSfFVwEBqokRGeEFq57Y0dqwkzdgGoi7GMHPrmh07umlWx4eeJFSMdOw+Vuekwd+7qOENLBtK/k6wuAIiPJw6zR2M4fvJkehwFVCMi+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ubSXTIZxXc9LpPjob+g0nydw9LD6zOxUbi9P7oplZc1cxc4uL3iSEV0CmuiQiqlnSQAjwZPlAVFpiG2ur3ODc5VBETamm7+nRigvWs7Xcs4hJ3qQGx3tB0MV/+Wm7x+WXENernKlIFxZqonM7WaMgbuglvbbzXFH1A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84ff2884-2945-491a-754d-08db68f1be6c X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2023 13:59:29.6408 (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: qZXJ26Ltm6jC5zkZcM9XsukB5+9bG3aE/s6g1vr94SeT7VCF8JpuOnXIKytKzUdd2Of1EdJAjUP7b1qON9NO3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7139 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: kuba@kernel.org 1. Taprio classes correspond to TXQs, and thus, class stats are TXQ stats not TC stats. 2. Drivers reporting taprio xstats should report xstats for *this* taprio, not for a previous one. Vladimir Oltean (2): net/sched: taprio: report class offload stats per TXQ, not per TC net: enetc: reset taprio stats when taprio is deleted .../net/ethernet/freescale/enetc/enetc_qos.c | 29 ++++++++++--------- include/net/pkt_sched.h | 10 +++---- net/sched/sch_taprio.c | 8 ++--- 3 files changed, 25 insertions(+), 22 deletions(-)