From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 65B7B45C16; Wed, 30 Oct 2024 17:31:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67AA24345D; Wed, 30 Oct 2024 17:31:43 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2088.outbound.protection.outlook.com [40.107.220.88]) by mails.dpdk.org (Postfix) with ESMTP id 50B974345D for ; Wed, 30 Oct 2024 17:31:42 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bxlqdscXo0SVJCHobHDMmWyf4N0E0Hfs/txxC/Q29+1WNvU7adEd34KveIyESqRQv5c+l4YtIeZl6VxknT5ZAfWVRiZP24+MBXh5Ohh814wdY/UGMJ3FqdEN0h0prOXr3gl0VGU8tZpeecZHwmtufd8ikc9v2geNWh/LZaNgbcxticN98oURykZnVIjhQZt/FOcCeCUnim0HvRqN1AKouNEbbiEQSg72T9/2w+ijjpoAmhWaN9UBBoB/nQXF+HcQA5BPNVl/HA31wxrUZ4RO8nl3P4ez1qVbi2xuI5u/zXcjAMALY1yGRhpyVG2qmsLeW1+xu8qP+9ep7bFtJ13byg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=jOW6iePUjCB01Opa27Anw8oHwEbunAiKMm04ZwctPLs=; b=axJvEFZ2p5mT4ZuBdbFlf1M2cAjfCDo6SrzmwoB6pzA3xICNkBRMJbVMDvYU9OGIfnO3+u6+XhqaYqQxuu+P81/NpdNp5V5KHxjnd2H4nFlqsNtQ/31J5g31qcBvyMqq+/EaX069Ztk9kbxljLTqICK+ttfm75u89uaAOKfXWhEcSjcb7TAvB0RzbrFQWIZDR3VfHIvEAOOOzg1fwjG6ugEa0mg8fOAQJcwL9Z92RXPdyeQxPnUclWtbFe2iMhc2PzLwNAk3EBh/Y/3zp+AlWcXFXn0Nd9AM+AnMouZ+dGzoERLWILrzESvx9zFFifwBWK5gcV75CpjFv55IH+S8Mg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jOW6iePUjCB01Opa27Anw8oHwEbunAiKMm04ZwctPLs=; b=o3wEHc7r3eMn8Mz5+x4VbqdZkeOInlxdFeHZ9AsBCP/HvUmj3E8aDYJX2ro5POQC5cezyD2coE79/t7ZZmfbuavLOm71eeZixRNTL/5bVlGmI3osFbtzbX+ARskDVYNG+OrP3vqhJdcf+HDiO5mKJUtc8iSh6CneHJff1hJrYBVMiQ8qCdY4E7lDvCYccoDIv/iGMK1pMej5l1ICVcBEgAoL4ozkpTBl9I5KR9pphSLTdYLtv2mn19KIfjIF6gkkCe3bEWVrxFBaCDn6pnxYfR7C5FQeXljcir09MXFuuEb4F93cU6azRAVXI+ulTzEwkp03odaACcnD4+dzag4V5w== Received: from MW4PR04CA0150.namprd04.prod.outlook.com (2603:10b6:303:84::35) by MW4PR12MB6825.namprd12.prod.outlook.com (2603:10b6:303:20d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Wed, 30 Oct 2024 16:31:37 +0000 Received: from SJ1PEPF0000231B.namprd03.prod.outlook.com (2603:10b6:303:84::4) by MW4PR04CA0150.outlook.office365.com (2603:10b6:303:84::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.17 via Frontend Transport; Wed, 30 Oct 2024 16:31:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SJ1PEPF0000231B.mail.protection.outlook.com (10.167.242.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.16 via Frontend Transport; Wed, 30 Oct 2024 16:31:37 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 30 Oct 2024 09:31:04 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 30 Oct 2024 09:31:02 -0700 From: Dariusz Sosnowski To: Viacheslav Ovsiienko , Bing Zhao , Ori Kam , Suanming Mou , Matan Azrad CC: Raslan Darawsheh , Subject: [PATCH 0/2] net/mlx5: fix counter query loop getting stuck Date: Wed, 30 Oct 2024 17:30:44 +0100 Message-ID: <20241030163046.495982-1-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF0000231B:EE_|MW4PR12MB6825:EE_ X-MS-Office365-Filtering-Correlation-Id: 69cfbf42-7b27-4d63-eedf-08dcf900536a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?QnfNdutLO5xrmjjBZ5bRe1kaNP+TgQ/jVcBz3z5lwhgsdGiyXwA5zCZ+nhUy?= =?us-ascii?Q?xRJQuwAFJEyUcPf4JzR+oAGJPVUuwrVY8t60X830Y+DveHt9fYrin49AnE3n?= =?us-ascii?Q?nhWi9WWP7Y3yWg2v5g/1Rz0N65vgyBbn4/itWNVQsQMEsmf35WRJP3kCskFO?= =?us-ascii?Q?TqqzDppHxL/9j2ZnOZZymDRXhssHpRBFAJbJp1yt7EW0p5ss5s/fKmipGMN+?= =?us-ascii?Q?/AWfkwy7DnAyH5IoIEsRaqZMRVLaRFz1NU7A7j7jr+GQgJ7FCyYOQinkk2yp?= =?us-ascii?Q?2sxgojREwmA7+DBWaf3FizaaUgB4hPrzpqzNc07Q63f5mWJ5C3b6Ttt3D/Dy?= =?us-ascii?Q?EQZZogxZw2O+KzSsZAhaK3/AmKkXSv5g/je9jY7SAwqs36FIyOLwmo78NhJ9?= =?us-ascii?Q?YSADNe+PwKiLlSvNoapMenvWQc9wcU6UIErL4jJbYVxOgVFAXJnsVDbtECA3?= =?us-ascii?Q?F8gEl1hR7ZxEQmmlx0kB06H9egr5SfwwgLBrpgYn/gzHyZbSXVwlMM5pDtm5?= =?us-ascii?Q?yKcabLeMBsMSRRdqyonYdDUqouqIDe84/6iOLR0ciArHxIwC41eVcCsFd6yX?= =?us-ascii?Q?ok/lpkXGGA95qxzXl319NvO48d/ZkJ62hMXti5b8zsyWTbYlUWQJEeN/6tot?= =?us-ascii?Q?vlYDKnNk/gloEHyt0ZvZRBSxFGO1QejGTeqA0hLCYFVfaqdszQyB8GZc0u3N?= =?us-ascii?Q?V5iSLJOOmmywV62IK3PHmkcQCHDDU1m95GZLycSZlc7XpTNW+GD6QowHy6lq?= =?us-ascii?Q?vZtCA9S+QUcvTcqHfJvW6fDAYd5rRjnzSNd7zi9m+gCtGBizC74dGfxQdpSh?= =?us-ascii?Q?Cczh9se9iZbHlx2fKX81xqURDEYuPHxCYdtfFheTgPEcqDEdfN0l4uvYoAXU?= =?us-ascii?Q?c8UDYeh/630gvYvAGpMlItTX1omB58wmitgOne7J26ucmHE+aiR9bLTYxtsL?= =?us-ascii?Q?UQW2EJBvSWDuo58QRfWRImE6c0+FKmbSnQxPUAyqkDGCtirFgs9XbcAWepJz?= =?us-ascii?Q?xgWDdM4K1cQFJ8m3sWR9pN+AsgwBzNKa/Oc7/EBBT9FOvKM17xx6VxOdv6n4?= =?us-ascii?Q?DeyYQKr9q/jqN7R7zSKWiLCSzUwGb+E8iUPJGuqTqTDixu2vENvf/Lpwkh8L?= =?us-ascii?Q?xNuMscn8/nMmv2i8EA5qb/HgTeT1eK3RnteuxeOFocCxz5r+vCbOynSsJ28/?= =?us-ascii?Q?6Jm2mBtJ6rdziJ8zjPjhe9T2++Zbnoy2jbw16wZVPu3m4CK0cm6+WKznzz4I?= =?us-ascii?Q?4DnGjKlPXbmq6io9bYz1M5p9RKBjwuEK+HvK2tfz+syliqDJcil0wpHa60tJ?= =?us-ascii?Q?el0gtx+k8Er/KsvycwutJm1A1cf2TNLSzHaqatwhMaFP52b0+nZ4i5cWvCTB?= =?us-ascii?Q?MgseLzbptpZv43Xadq00Io/sjA23+HeKipPREkFFyNWSzUyjSA=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 16:31:37.3975 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 69cfbf42-7b27-4d63-eedf-08dcf900536a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF0000231B.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6825 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Main content of this patchset is "net/mlx5: fix counter query loop getting stuck" patch. The preceding patch is required, because the fix for counter query loop triggered the dangling pointer compilation error in GCC 14.2.1 in an unrelated part of the code. To be specific, the following part caused the error: ``` @@ -3978,7 +3982,7 @@ flow_hw_async_flow_create(struct rte_eth_dev *dev, &table->ats[action_template_index], table->its[pattern_template_index]->item_flags, flow->table, actions, - rule_acts, queue, error)) + rule_acts, queue, &sub_error)) goto error; rule_items = flow_hw_get_rule_items(dev, table, items, pattern_template_index, &priv->hw_q[queue].pp); ``` Dariusz Sosnowski (2): net/mlx5: fix dangling pointer to params net/mlx5: fix counter query loop getting stuck doc/guides/nics/mlx5.rst | 71 +++++++++++++++++++++++++++++++++ drivers/net/mlx5/mlx5.h | 28 +++++++++++++ drivers/net/mlx5/mlx5_flow.h | 25 ------------ drivers/net/mlx5/mlx5_flow_hw.c | 26 +++++++----- drivers/net/mlx5/mlx5_hws_cnt.c | 46 ++++++++++++--------- 5 files changed, 141 insertions(+), 55 deletions(-) -- 2.39.5