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: 10555 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp971116vqr; Fri, 9 Jun 2023 07:04:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ztgZXLH3T6w7kUNbCgJvrhBdzEz9inRHZqJXnWYdy7otVTutEVeNw9FLIuvQvLguV/BPJ X-Received: by 2002:a17:90a:d908:b0:253:6e6f:f5c5 with SMTP id c8-20020a17090ad90800b002536e6ff5c5mr6418194pjv.7.1686319487217; Fri, 09 Jun 2023 07:04:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686319487; cv=pass; d=google.com; s=arc-20160816; b=ozILJexTHru49YJNyugTT2qnobO1r8SHb2/OwPOZF3Dfrg7n8vTEmizc125jiRexFd NcefvtfiCyhtCqHdY60lz51bLTUoLe0FbW8OmxY55STdiMxUNDo9ubJ8bfSmXOrqZ3as Hvght6e+QfKhjolNflpxeN3qj3eDAa9aMV02OB3uk65zkTG4BIypQ8JItkECcXJ8LCx0 U4pZpuPazfsn6f6xd9r48tnlTDYsFr6Kv0BucW1U8W8C6PDjVM+dFvm+YSwU0VX3zJ29 k+hW0inDpfWH3UGBWg44MsC0P8UxfpLWAoRpGpkK5Jw4H4ohNbWttaqcuGNbXtd1TB6K lNcQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IIpqB7Vyc+Be0KwmZrP2Ta/HV37bUV/Tap2HpZ2YhRE=; b=ce9/u4frvZ34HctT0ej9YyX/a66AayAR3ynqwQatl8tfINM93USWINs8+/fmOk2NIg nqKpQ7a/21jH6EEkBLUxuT7X8h/ZfHxN8f8/kiCESuURu0vooMOVwW6+vO3xKHkD4AM0 MSU8Iilk7QNyt8pZ0ZZPl8LiY4xLseTGyae+Yp9w8LZO7s/mknM6GMM8av14EWqCu+B4 7Orps584YA5ikdP2u2Zh38JhHYJSOvJxldlLyvxGgwzcTwXs0J6F1lMtFI9d5J8P/S7P vKH/HDse1d1S58TIpOM2h0/0zkvbhFMlwcog94web9iuOrUnhZXOJET1W1ciIDtKliNV ysHA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=nhkFFks+; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v17-20020a17090a899100b002534f4ce2b6si4468680pjn.125.2023.06.09.07.04.29; Fri, 09 Jun 2023 07:04:47 -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=@nxp.com header.s=selector2 header.b=nhkFFks+; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232169AbjFIN7j (ORCPT + 99 others); Fri, 9 Jun 2023 09:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbjFIN7h (ORCPT ); Fri, 9 Jun 2023 09:59:37 -0400 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) 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+33kyNhIp/3nQxGCgE7VUNRG9wbGumIPY1Fyjm7DEr4EUPxf6TzdjZveAaoFujJfDL2vo44ugXo1JSrnIXL6bFz91KcDRvXvSp7zB9ERyG08Nd4oRkFQ4tUCwLULYPv8kgIucITbLUAo7wPwqowXBixhJjwItUonFOdN+2ieHrszS8zImxWUlHONyvQq9JFZfnOwGkSRSvzVBDIEisTiNy4smwVHMmUd1DbWlaCZke9rF4InmmJ7LGHi9FGXTmjVF0hHC4Yw2MwrHaRVFMm49lHk5oSO6Sf52djlJ/sIM2fju9VggjyktegokodsafWKdVk61zvFJcIJasR5pbxK3h31EFSi1H16YjJ6S2L52EJUl4+vso3iUuauUO2+hpitEgBkvDpTmm96UtPe9N/SYvUKDrq7rT89D2sbWh2rU08NGPpGkKAZcfg+6c3GT8FAMaWISK+gYOsYekcndNcTYy2VJiB05gJCywdOIFwUvd/y7CQ+dmMPT6LyS4Ti3WFk/0BIHp7GFK5JzOk+Ty+dctmXvyiDF9tTW6eHES3AeXCXgR+lemie85sPK+MNEH2EQ8ShC1IvE7agiu757jjSEgWq6v8epuAGacL9LMU/1V39e0ZCgcNfYPNPN7IE/wkDUwVsfOYQuH7rb1YRm1syxCSEq8ms2S2FPCLzyXwyrnstU4Twl9SX/KQmzQa1pWCMS9Bx19S8ZKXLZOD46Bd/Ft2XexM7cxI/YQut/Wf8499akmLQ9Es4UHHoyLOzIiTVTxYg3igzV1RpodEFB0J8nTM5MebS4QT+uUa8U/7jqgB6FgHFqBbrf5YoorU0UGHbsa0cN08yxPbHRqhlb3ddcSU1U+jqL5+Hx2yjpme9M6MZx8iq1pzJosNE7BZMFXFNvxSlvzkzjvU8ilVfyrB6FFZ77WBj45PIj+7sFj5MZFkD2n0PbSF4Ru3piXzgQj0SwcxiFnz+dbr2Ip6ufAhgJnSy+BRa80j42g84DRLoaWZrIBRz8DFfkpBsNWEmGeqlcb6UH8A5HQPU4e6xs7TliD+zqLk37R9rjpu2h6qPuObkuiF/XbLUQto/fWSrzbubSXTIZxXc9LpPjob+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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768234142587537776?= X-GMAIL-MSGID: =?utf-8?q?1768234142587537776?= 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(-)