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 ED51C45BFD for ; Mon, 28 Oct 2024 10:44:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E7D38400D7; Mon, 28 Oct 2024 10:44:35 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2085.outbound.protection.outlook.com [40.107.236.85]) by mails.dpdk.org (Postfix) with ESMTP id 1B760400D7; Mon, 28 Oct 2024 10:44:35 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qGB3RA26leFDnXc0jcqWFgP0RUdsOFMso7SGeY2/d9VKSuM4K3gH6XZPAyVrAqFz/XS+230Vg/+JAwgWK6TRV5BECRkv1R8JEVR/qfQX6O9IicZL56PSo0XuDT5oMCLswhv9ZmI7UX5hqWG6JgdATI8DksowHINLmxCZzKeGOHOjh9kkcEoewSYcyA7IJI06CU4Ac/LGt+UXGi6OJzXrLiozqem0CMyqsbxfBwtE0U3iqv7TF3ugyuQEhdMy0oR0MvOkGBEVxamTDS10wHjZOynB3DgeLiU06ZNIOWEO6Ii6EWzOLYt7b5SUXV0YGFbrI5zMA7vXrGn3/UAXql2wqA== 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=7ojHJiHIVEgsYeibRmuGzr+1JuGrctMLaS//1PfL23U=; b=L1O08tDYnqvlO3VjJ5bMKlkuNKGBdrRyI9zv7Ddb0P1SwgK3Xw+uk2B5SnIB12kG7eILZWmWplOOyF8GP4ETRBstiIuMDl98IUmmMOOJp5tPBlxzs6zZ9UBx6nBaoshgZqanBQH5vrtwZMRvpVQIYWy6V2o1g7+ODPErA49ltY6kXEbmOeZws1L/E66Qwt5+p1Ja0Ty3RVudG9+08a+0KNjvJ3Xwi6MIlQ1gqGur8/yy3FAH5OnMg/omw1fIAN+rdPjHPEJpOlEclkpzDwEmlJol2dJ8b9Qxlv3B5STK6j0cwcqPvIItv6n58JBf0Nc994Dyw7uKXFk1Toj5ay4OXg== 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=7ojHJiHIVEgsYeibRmuGzr+1JuGrctMLaS//1PfL23U=; b=fuk67qtQLXIgDftVOqKqvSN5DbvviR2O7lrkNWIvqRKRLnNz60Wv09Yx2Uz5qcnK/Dm4uO0xYiZCrLoUOi7Q/zJ9z9nZpKrbsIsuH+/tDpo75XXDM7Qjdwjg2A7OPei36/A9q99YG2WMhGX8MszjOHXf+6Qx9Ny68ghFPnQoWsK+dFeSoFeiuhieBgOJkYEIVzjxUb0b8HZ8WoMiR0ZpDqtkHdeUcHHE6dJm9yY89eDys/zBQbtJz0pzP8guX6uffFe8WfoxfJ6ub3jpjpR5XhJYcIFjOo5SiLfoMnX+yw43J/U0JdPTLCjF0SF/4z6+pHdNpk8JXETgiBIt4Sl/AA== Received: from MN2PR06CA0022.namprd06.prod.outlook.com (2603:10b6:208:23d::27) by IA0PR12MB7751.namprd12.prod.outlook.com (2603:10b6:208:430::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.23; Mon, 28 Oct 2024 09:44:31 +0000 Received: from BN2PEPF00004FBE.namprd04.prod.outlook.com (2603:10b6:208:23d:cafe::a9) by MN2PR06CA0022.outlook.office365.com (2603:10b6:208:23d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.25 via Frontend Transport; Mon, 28 Oct 2024 09:44:31 +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 BN2PEPF00004FBE.mail.protection.outlook.com (10.167.243.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.16 via Frontend Transport; Mon, 28 Oct 2024 09:44:31 +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; Mon, 28 Oct 2024 02:44:10 -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; Mon, 28 Oct 2024 02:44:06 -0700 From: Gregory Etelson To: CC: , =?UTF-8?q?=C2=A0?= , , , Ori Kam , "Dariusz Sosnowski" , Viacheslav Ovsiienko , Bing Zhao , Suanming Mou , Matan Azrad Subject: [PATCH] net/mlx5: fix indirect list flow action callback invocation Date: Mon, 28 Oct 2024 11:43:50 +0200 Message-ID: <20241028094350.231352-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: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF00004FBE:EE_|IA0PR12MB7751:EE_ X-MS-Office365-Filtering-Correlation-Id: 98e4b414-a9d0-4a05-8b2e-08dcf7351fbb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|82310400026|376014|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?5hf6cF49R4scwBhJoazCd9m+Rb8NXU+mQslcGGCypsGrBnaXFTsn+LeoUY8t?= =?us-ascii?Q?ho0ltPWolO9/zGVRrExriGpxQ0VLEh1zR6IqO8U7oVbuw6Dc/NRQbvDhD7DW?= =?us-ascii?Q?foOC1C50PC5p0O2DZeoj5IfzoTT0g28o1zmV+WoCiNN1b//Ef14CkdBGF8MK?= =?us-ascii?Q?XZqH99BtUPvcHVMAO+i53E7nqR+96ImJiN4g2yFVFidia+CAcJjG5iix0NcG?= =?us-ascii?Q?mbfyUv5NmdOwcswf3HG4IQiX7NbkKSG6zhRZpCUiRQKYV6TbAno5umV54Ive?= =?us-ascii?Q?dTAUKdq4IhfsWJ4VkRHWYO+S5psFoO+UY69u5jKx44eNVq89HI7bdqRLsVxP?= =?us-ascii?Q?s7DCdNf+Qj50vLTh8KBTZfivfifTxD2m7Fkvoru74EJQjyj9cdaJFtUI8Fat?= =?us-ascii?Q?K+znTRSYnYHqCuTyqeVetffe3Z8md0M+NhlXkRSbTKXJGG9sMoaUwgvieUVI?= =?us-ascii?Q?JtycxeMPCBDFk2D2b7DAcwz47BW67y4RsGYZ/GYHcSZCEw8kee0hwIcBbg9B?= =?us-ascii?Q?FGpFsIM48LgR3o4MfPwGYhL7CH89sVFay0wTfssuCTp6kaRVXf2cQ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US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(82310400026)(376014)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2024 09:44:31.3885 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98e4b414-a9d0-4a05-8b2e-08dcf7351fbb 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: BN2PEPF00004FBE.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7751 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 Fix indirect action list callback parameter. The function must be called with a flow action to process - not with actions list. Fixes: e26f50adbf38 ("net/mlx5: support indirect list meter mark action") Cc: stable@dpdk.org Signed-off-by: Gregory Etelson Acked-by: Ori Kam --- drivers/net/mlx5/mlx5_flow_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index 5b34154bf1..699fddc445 100644 --- a/drivers/net/mlx5/mlx5_flow_hw.c +++ b/drivers/net/mlx5/mlx5_flow_hw.c @@ -3547,7 +3547,7 @@ flow_hw_actions_construct(struct rte_eth_dev *dev, (int)action->type == act_data->type); switch ((int)act_data->type) { case RTE_FLOW_ACTION_TYPE_INDIRECT_LIST: - act_data->indirect_list_cb(dev, act_data, actions, + act_data->indirect_list_cb(dev, act_data, action, &rule_acts[act_data->action_dst]); break; case RTE_FLOW_ACTION_TYPE_INDIRECT: -- 2.43.0