Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5100090rwd; Tue, 30 May 2023 14:48:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7D+qqxX4ahgAt8rVhPgWzo072nxgQHWBSZjA07pDdxYYxMkWDBSXmbFvvPi2dbDAYQyd4q X-Received: by 2002:a05:6a20:9184:b0:111:1bc4:cf0a with SMTP id v4-20020a056a20918400b001111bc4cf0amr4114112pzd.52.1685483332278; Tue, 30 May 2023 14:48:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685483332; cv=pass; d=google.com; s=arc-20160816; b=HNMwklH36U3CZVLcc+e6Id/K541lPRajsBOIit2unaCKLuuzZgZx+hNGMUQhc6UBet 5Gq+EoflhDGGdcjJ1kgjV3WKpvg0htAdJ0yyYuvi5iQ4hy2qJg+hx+1OYYYYD90+3FLS 3YwnoeAWYJndSO9fMFSLPu2FJV2gUz/fw4qxi14A4SGgNTq6sMJBC851jorW3CKoGjJQ VG3MpUhwkU+Wqpjc3vDa3bbq1zgmW+rKFX5BJJQej10U0IubGr8measlbGiot6HIK7mi MMk7ohIDCJrTCMr2odEFuHjHKyo+tmtUVevPUpsn2tVRKC/yts+RdiaHcCe+/ZcYvwEA E0rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ylZyePCCTjMbSoCPQZhVlAHOBxRVv1JrYxv/O2WWfMU=; b=kUvU98pCG4bWJV824834jeFCYrA+hN2FZXmlzkojCDz6ycUOe17grM8AD/CE3q+aEw 1oH1AHQee4e1cU64W3d5dRvnqJByUb99RjfvOqBWqzT4n0C6kYgLpJ7F3aH3miSNHr/u XM3uak0W9hk0NvD/Z4uUNqfpPMAkp5E51EScGFfTIzHYzg4wiqLFKZBvw5k3gdfGn5Dh uZvNJe3wiegB4QA9NqKTabUDVuuXZ5CDoeRY4P/4UhkvJmIY3xn6qYs1d8trKHkXMbGk F5Lu7jFNKfnCnd+i1qdgETfFZrg9eQUI+sYr4qClxWLa1lam5qL3si47kXYiIgwmUB5i nAww== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=er+ofbeo; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020aa7958a000000b0064fbc57845dsi2359581pfj.133.2023.05.30.14.48.37; Tue, 30 May 2023 14:48:52 -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=er+ofbeo; 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 S233516AbjE3VdC (ORCPT + 99 others); Tue, 30 May 2023 17:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjE3VdB (ORCPT ); Tue, 30 May 2023 17:33:01 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2080.outbound.protection.outlook.com [40.107.15.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D847DE5; Tue, 30 May 2023 14:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nBwCCThBf7Yo9uQ5veERtBEgULP0trIRZSPM0YhfHTq5frELzEGAmwEVgL1u50GRoapHKf1bSLY75zTDEbMKzn1JGoIMfGIfU3GMUaXShvp4IR5Kq41gqgt4zXmapHVZlRxSrWSzCcFbNGem918q9xOGVoYAhooo4ptrrzzDo5PgTO1wXTdQgaefoaEhm2pD4mUwiYT2q3lXqLLFGf7izq32508ttg9UM/ej4MKAG5M6FNEukdNi/3q7DyImi4ZjfXGH/pODGVaR/sO3EPVMQ/96lcsSAv2FODqOl5IhvVP1SQpMZIyyRVaZDOhItWNkJXyfYHdz6LwMV0ZgZQp5aw== 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=ylZyePCCTjMbSoCPQZhVlAHOBxRVv1JrYxv/O2WWfMU=; b=Qsj+g83VjONTNzeVhqn7+bM8q6Q803SNG1YP/gb5ADzfnZwx3haa46GJ8q5swZKYDQSILvuVPoixQtAhDSAIsheAW6mQjPByo+QDD3PvbUg8nkPqvjPvIYgNMXnpdazr0Hn3W/WxGtO/om8XyxpejKXmvie8NHg8+y2Q5P0bwmPhlNrAeJvYlsQ/b6U+swP4UoOmbNWIkNpGSoj5IjdYhMy4MKKJT5mbRQQEqRQWVwh1Blrgt1LOkEplVCAI3vLeHn7KYHaA2onBK82av76YRu0f5mzs7FVa/CyyA+CtsbJEYbFfLr7NuBkITCdR3Lhlu4ykB5sfZaqxgoMZPeRj/Q== 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=ylZyePCCTjMbSoCPQZhVlAHOBxRVv1JrYxv/O2WWfMU=; b=er+ofbeoQ+2xMFP6rXorCm29gOKpFnjDU4H3HYIVduLpqPh9v4BVSStuJCM5HSv+cq3efCKAblcuDNlan3ZYF7g1o1V+EPd+qIVuljSksmlXMhfpvORES/PqdEXE+obRVHEYvshZ2bg3QyXfDsRzGFrYpC0+HpjcAdfkIIHP8NM= 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 DU2PR04MB8838.eurprd04.prod.outlook.com (2603:10a6:10:2e1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.22; Tue, 30 May 2023 21:32:57 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::b027:17aa:e5f5:4fea]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::b027:17aa:e5f5:4fea%6]) with mapi id 15.20.6433.022; Tue, 30 May 2023 21:32:57 +0000 Date: Wed, 31 May 2023 00:32:52 +0300 From: Vladimir Oltean To: Vinicius Costa Gomes Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Kurt Kanzenbach , Gerhard Engleder , Amritha Nambiar , Ferenc Fejes , Xiaoliang Yang , Roger Quadros , Pranavi Somisetty , Harini Katakam , Giuseppe Cavallaro , Alexandre Torgue , Michael Sit Wei Hong , Mohammad Athari Bin Ismail , Oleksij Rempel , Jacob Keller , linux-kernel@vger.kernel.org, Andrew Lunn , Florian Fainelli , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Jesse Brandeburg , Tony Nguyen , Horatiu Vultur , Jose Abreu , Maxime Coquelin , intel-wired-lan@lists.osuosl.org, Muhammad Husaini Zulkifli Subject: Re: [PATCH net-next 1/5] net/sched: taprio: don't overwrite "sch" variable in taprio_dump_class_stats() Message-ID: <20230530213252.pddrmwgppneawmht@skbuf> References: <20230530091948.1408477-1-vladimir.oltean@nxp.com> <20230530091948.1408477-2-vladimir.oltean@nxp.com> <87edmxv7x2.fsf@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87edmxv7x2.fsf@intel.com> X-ClientProxiedBy: FR2P281CA0042.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:92::15) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|DU2PR04MB8838:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b2e2069-b931-4070-1289-08db61556f2e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: plHa4AmhraxAvXixGV1XgiQQ5lfEtbGPFMvlL5SbNp+tZf0Vp0ifkCePJHDvI5QeVk61TOXbnNcUAfnLpTMHj9t8Btz5hE1alIbESbe2L+uCmOr7oR/G6vWQCy8ubjVdm2IYsInMbJoNufOcnQZB/9PIZUl1bJ7ERqyz+3MkMPhtzYeWcFEswhxmWvRChzxoVQ8yNJFgVga+yVjh5ty9NWBqkq+z9OysHEg0rDKPyU1EiqJeOnVI68jtx3bS61UohU3YGk8EtIC8paM6QffHkRU/j+eM7gMIbZU3FMWwW9Esn1Lr9XcxhilnffZ3T4EIAx2GK0s3IgmE+H+UZfZjXggkOPXdFUJbMK+oNLXMC9By/VeYnEHC0AwxkKOF+ZH1tYzwH09I43pTOiuwAcyNxFzYJIU0f8fcV5oJ2eXiiaXa0njO/s9EZqe4VNRax45jM+w3E4shRptP63ZskO6RdUrlSLFQIonycXRaqwulIaNxoShPGVE1HhOJVoff4q5glxim8l6H57QCJHiTOYZWgav6M0Tm3mDdWnJvPSf9J1ZifAYresUAkWcbXXbM4Rzj 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)(7916004)(366004)(376002)(396003)(39860400002)(136003)(346002)(451199021)(38100700002)(41300700001)(6666004)(6512007)(316002)(6916009)(3716004)(4326008)(86362001)(8676002)(8936002)(6486002)(2906002)(4744005)(7416002)(66946007)(7406005)(9686003)(66556008)(66476007)(54906003)(44832011)(6506007)(26005)(1076003)(478600001)(33716001)(5660300002)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?IE9XI14G+gn/IJvtCEyGxzsmFrd6F2vjHurKZk1YtXIngYo3lAGwiSNpzzZK?= =?us-ascii?Q?c0qzmF8Kp44c2XcbU/wG42mmWvS0bWI4mndv0ntTRXBMbt02AWE9w3KnuQ9i?= =?us-ascii?Q?SadeIwz0jR7JsXlndn9vo112upXIZDM5WAs7fYn/1Y6d6e1qylgxhtp+CazX?= =?us-ascii?Q?e0YHaMe77D2EeTrPJPJWRsM4KVqI04OiIeuWOzaqeDlQVmB8Yjoi8JTS4IiC?= =?us-ascii?Q?gUmhvoFa8MUFhxrLEW61iSApDRcYrRIOjpRUSKepwvXPYLTCyKxQ81OPQ7iL?= =?us-ascii?Q?qjbp9HWZkFPgnqTsJvJM7WueWZaXSy73LKwCC8gpWWesqwOnVj/coi24QalV?= =?us-ascii?Q?v2698VOxCkiUj/V9fFGhL9RxEu4k+z5Qwi2ffwyAveEVKL1LNRqIjmdCej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PkaSXQ3Dc1XS8burI3lsw/TtKTRiHtHEp?= =?us-ascii?Q?uZzjaoEhN5+upadgR+E5JACFaioTG5ZHB9zigFTod7i1ecz3MMvV+y5wDZYf?= =?us-ascii?Q?VDUbFnd+d7WbsA+R/68Vz7MAHLLpqN86v4CDMaw57J/MWewpP0sibH07lc32?= =?us-ascii?Q?XX1gOdu+/7V7US5Xdw+vQSjB2RHVULT9jP4KkqgWV0oWtM2BBnk+hcIGrJzg?= =?us-ascii?Q?AqpBHnm50DNHaGcYPTKHaoCAjg9cQwGLUBpdLPw32Ug1p7yq0Bqbp2+LxLkf?= =?us-ascii?Q?SAZHPOuIHflJcGeVBCde5L0N+4rDHyhbydR7NikSHO2kQhTQDAyphA7Dzy4j?= =?us-ascii?Q?xQ=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b2e2069-b931-4070-1289-08db61556f2e X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2023 21:32:57.0645 (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: xL18dFdIK19zvuC1WTLCUcMj9l5TAerdzCwzHWTcuhjPvK43J+Md7SunVlFSGsbNDCKP2UQZgxQmc2SN+TQwKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8838 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 On Tue, May 30, 2023 at 02:14:17PM -0700, Vinicius Costa Gomes wrote: > But I have a suggestion, this "taprio_queue_get() -> > dev_queue->qdisc_sleeping()" dance should have the same result as > calling 'taprio_leaf()'. > > I am thinking of using taprio_leaf() here and in taprio_dump_class(). > Could be a separate commit. Got it, you want to consolidate the dev_queue->qdisc_sleeping pattern. Since taprio_dump_class() could benefit from the consolidation too, they could really be both converted separately. Or I could also handle that in this patch set, if I need to resend it.