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 46B3545BF4 for ; Sun, 27 Oct 2024 16:32:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2531940151; Sun, 27 Oct 2024 16:32:09 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2061.outbound.protection.outlook.com [40.107.220.61]) by mails.dpdk.org (Postfix) with ESMTP id B3FDF40151; Sun, 27 Oct 2024 16:32:07 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bB2b+ZyPpgeDY5vt7WHIiMzXostjGk4gqavj24rBmlYgJzIGFT6EL/6O2qXLvophFyvLx9ODGoJwkCsGruddJl2wfRlYWahBJA2S8tmqId/0Z0gAs3ewS+7ZLkQhqtvqp3kbPbD1E56t8Sud4ttjVs0gcC2sGqg366eHKRKH3XtmplFb5As584lzFPfh0kz7SFHZ2QAUjk/ekQp6m2/kPLtHAHazoeoI7GKPJM6ldocfVY+HKd9Had7HbETvYJpSebeRJZ+fv5FdiCg/iHUPR6Wcrdl/GLzjkM3xVfnFOSjd84DYDQPIcKz40zohwlMbaDfwUZT2rbMqc6w2cL5zvg== 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=pwgkmSXmyDi2RuCVuAMFlxslVjeWEl08WyXNboJwB+Y=; b=D0kMQcUmsqkc+WhXdrEHDhh3I0G8Ww13+q+d40tvflSpacEdlX2HGANSB0+ypFAkGpTFzT+e4qW+IjoSwKcZAc8n1OSkBnRT16tmh+hPsi7YtHCnrr3ynxp44mmmyW4x5gBke0iNbSPV0D5PqDx38PaW7//PRNen/JJJ5fRvIbOxBvTlJ3HLna3G9UmX6lhG1brLmHPd00tls5CVF5FjOC5aylLRj3DRg2+ZLhqT7Ziz3XigtJ2wn5Y8+NzE6DRzyQrmN3nH1hBKQOhfCXv3Dx3L5yQ+zy+2S5fMY20Kc8osCjM/9WhhSErURHls/ZLsNnwWhB5lyt78Zm+5Rj/aVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=pwgkmSXmyDi2RuCVuAMFlxslVjeWEl08WyXNboJwB+Y=; b=M0GaaTkN9OyF7dBEr48vxaLMpNOnc7gLT7XcN61cbirsNb+f0eh8FLJlPBa2buUCmyAKQ8Sj7764tjhsEMlLzY+/i4h+2yqd1eqrPSbAGZxpI5fR4nhPFA4UaY+zpwy7z0opVc/UgPgWJV4EUp/K+joLt1mFBLbPLAl2J6SBG4lCuvjZNw3xIgJypRLE0r20HSOt02itVeGI/9MdytVKrCpbWWhr/apPBdla9QFXApmbAhitCtlwkyCG2lKTK1yXuVm+gjHyTQoFUKN2nEnBa7ShbqWLC9Zwf9BDOsA2yyVDjHxn0JVfccqpvwpelSaALMndD2erkkHxXks2yZTksA== Received: from BYAPR03CA0002.namprd03.prod.outlook.com (2603:10b6:a02:a8::15) by MN0PR12MB5811.namprd12.prod.outlook.com (2603:10b6:208:377::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.24; Sun, 27 Oct 2024 15:32:03 +0000 Received: from SJ1PEPF000023D5.namprd21.prod.outlook.com (2603:10b6:a02:a8:cafe::af) by BYAPR03CA0002.outlook.office365.com (2603:10b6:a02:a8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.23 via Frontend Transport; Sun, 27 Oct 2024 15:32:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by SJ1PEPF000023D5.mail.protection.outlook.com (10.167.244.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.0 via Frontend Transport; Sun, 27 Oct 2024 15:32:03 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 27 Oct 2024 08:31:59 -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; Sun, 27 Oct 2024 08:31:55 -0700 From: Gregory Etelson To: CC: , =?UTF-8?q?=C2=A0?= , , , Dariusz Sosnowski , Viacheslav Ovsiienko , "Bing Zhao" , Ori Kam , Suanming Mou , Matan Azrad Subject: [PATCH] net/mlx5: fix SWS meter state initialization Date: Sun, 27 Oct 2024 17:31:36 +0200 Message-ID: <20241027153137.167214-1-getelson@nvidia.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF000023D5:EE_|MN0PR12MB5811:EE_ X-MS-Office365-Filtering-Correlation-Id: dfc0b725-6f55-4863-ed08-08dcf69c81f0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|82310400026|36860700013|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Lqbn1Pc4O2YUx6EWTe2YZ90Tb6daeAZRwFe/W7JZHg3yOUF909vlKq9uIv2S?= =?us-ascii?Q?zWTEj6rplCJJRRaaGCgEuFIFFOoPABSQwcuNsqiu8f1RO5hPxpj34OmF3pU8?= =?us-ascii?Q?+MMJ4WeHUXYEm7qCZaNlJBbjZOPCC2GIc7xFyRErctF2oRgC8UtlS2CuPGiL?= =?us-ascii?Q?+kvcifKZTVNIVvVyZwO1f5ImJNJtYuMz5XIynGe+khcs/1Xl70+lQBoivumj?= =?us-ascii?Q?/sguHz/ukNMkQqy3AjPHBuG2urMtghpB+doA4wdAH8sfQo8sTnDMvthQ+y1v?= =?us-ascii?Q?sxRBJ6MZSI4zMsXwKt1DsVfExz9G7lkdRT0424PU4cmWxefE5dV17umAC3Fg?= =?us-ascii?Q?VKTrXEHPuy9uX/nhF15F0xGS0JGm2PTVD4k5eWHzTN/62JpX3w0sUJfC2C5M?= =?us-ascii?Q?YabLHTMVJKTk70Y/k/Lyh493Wf88h5yO/qGt3UtncezKxvYF1nadPhdnl0jN?= =?us-ascii?Q?MhdYRk0ku7QgcrJKezKmsy/gGePALXMTZu6Jw9hBTsI0ipywi9SLquYHxImd?= =?us-ascii?Q?42les9xZlrB4Zh8TVCnZ2IaxQ3DwV9Q67djOClPWWJxonzQqBwCRCdNetIno?= =?us-ascii?Q?c/Aljt+DbOifHAy0NShAIfev0FKRRGjldBN8XyaRzAsoHqsrsazMMS8YJ4kL?= =?us-ascii?Q?bjKCt/ozNvszPmw38JWLg550DrbKxbIaCyLHX8QeBChRoOF5UbSqe2fYVm5e?= =?us-ascii?Q?RHhH3UYanjxJV+JN1QudhrTayWphbJ7YATsQtBgeHF2OQBim8DuZhPBmkL7i?= =?us-ascii?Q?VML3heA8XsionoG7yUoRrbd4hNxZdot06RaDATasGk3dJRlQpIhNsFroTqwE?= =?us-ascii?Q?q3VV31tnC/vJTkOIuxSFPaJDvPneRvL7KVgG478tXtjyJ2XH0nuJUfvyqhqm?= =?us-ascii?Q?cYkRShTNAdA5F0t/zyo0cM5ZbnuPzXxL36WYlkHx5/tRt+FY4qqNAv5nhllM?= =?us-ascii?Q?ITx529peQo6zvzQmka9PsXheQHRxRJ7/bcmz8fHYEpxiORSnH8vccKwZsXlX?= =?us-ascii?Q?JfJpERoW++7EBGUT+gjEHSOfTmBjg8g6S0XlVDqq1aP2MkSOdzgutMIcDXA2?= =?us-ascii?Q?QvD2U/0Dg9hIbga3gqsGQMglDjnNhI9CnrvoOONAa8HhtxjbBLfo0mdG99vW?= =?us-ascii?Q?NxzVw3XJh31LiBBmGF/Gnn1oIIWYbLcZzSHiniCTG0EnjaSw+3YBSBDAOFHu?= =?us-ascii?Q?+TsaDn8BOJTWqHTHx7JvzF1dtxvWu8HRdapMHW7g2/vnEp1mqzEGCYhCy7Il?= =?us-ascii?Q?O+qbQYiGrMsRgKU06pGM81s33uw4MUlEVkx3DU6AHiKbxPNAIWoNknGFMXSL?= =?us-ascii?Q?JA6e45eTEteh0dVx8EN7+TFznVkoBooyckXSc6PEylB3QtPrSrlUxflZpwoQ?= =?us-ascii?Q?oQNql2yJYpsy3KcdSgynKdrQfGg2GCONtib4O2F2jvZLgK7euA=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(82310400026)(36860700013)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2024 15:32:03.4836 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dfc0b725-6f55-4863-ed08-08dcf69c81f0 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000023D5.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5811 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org The PMD uses METER `state` variable to monitor ASO object availability. The patch updates SWS meter object state. Fixes: 4359d9d1f76b ("net/mlx5: fix sync meter processing in HWS") Cc: stable@dpdk.org Signed-off-by: Gregory Etelson Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow_meter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow_meter.c b/drivers/net/mlx5/mlx5_flow_meter.c index 19d8607070..c605597662 100644 --- a/drivers/net/mlx5/mlx5_flow_meter.c +++ b/drivers/net/mlx5/mlx5_flow_meter.c @@ -1914,6 +1914,7 @@ mlx5_flow_meter_action_modify(struct mlx5_priv *priv, if (sh->meter_aso_en) { fm->is_enable = !!is_enable; aso_mtr = container_of(fm, struct mlx5_aso_mtr, fm); + aso_mtr->state = ASO_METER_WAIT; ret = mlx5_aso_meter_update_by_wqe(priv, MLX5_HW_INV_QUEUE, aso_mtr, &priv->mtr_bulk, NULL, true); @@ -2165,6 +2166,7 @@ mlx5_flow_meter_create(struct rte_eth_dev *dev, uint32_t meter_id, /* If ASO meter supported, update ASO flow meter by wqe. */ if (priv->sh->meter_aso_en) { aso_mtr = container_of(fm, struct mlx5_aso_mtr, fm); + aso_mtr->state = ASO_METER_WAIT; ret = mlx5_aso_meter_update_by_wqe(priv, MLX5_HW_INV_QUEUE, aso_mtr, &priv->mtr_bulk, NULL, true); if (ret) -- 2.43.0