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 F0FB6460EE; Tue, 28 Jan 2025 08:54:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E08D540E0F; Tue, 28 Jan 2025 08:54:40 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2070.outbound.protection.outlook.com [40.107.220.70]) by mails.dpdk.org (Postfix) with ESMTP id B0BC240E09 for ; Tue, 28 Jan 2025 08:54:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=c4c2/Gk2lOAuNoKGpLO3aNT8h3PYajsu7GYzpvH3wBwwVIf4IX0B1L1ykog0O9IuYwMqoYDZ5shLMnxxewAkOofoYfoEmunoMNrQuo2GDeIjh1fhbK6c3Rr8xKpWjrgQ/Rb7ZaqBXdnMtXlA9653gHFzbHPqW7aaYTtMfOvda6dd3Y+HHlD9sMLrkb7KxAjFR/QuxOMShIdz7bsJy0zHDJr/qSUS5ydIH9Y5XdD69fhOic8uaFvn4Y4gdcljngdq+TvCVb+qio0FDHlpLXYJEzEl9N771Q5RT6Yzfbjs4KVh1IVrNoOcIoM9rltQ/wFVt/39c0Zj9MoUbNg/OUlwXw== 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=fuF0kL/DO6/oSG6RBV9NzW6c0cG+cKwEHUHN09awcPA=; b=fnAaJ7EO9rzJ7KJJW9LHIQwxVUhcQyq97xw2aQJB/NWB1te4CbpzFw1aYw4nrbM28fJCPo3bLXhuM0aFq9xv9el5Z+i6hsnN1+rt1y3AKFu4z4eoia80igpZXqHQVB91hY1QAD3bePc6iTS1IeqaRDa5yiBCJGLlNsR2C+BHzwhOSYg4ujmmCv25FLHwZ/M3s6frEBvWJsIjJMJTUQ8KVzb8naR1x58+jqGRlBVwLmKdYcksrBcoQ63Qv+WBfSjr/GgUkLq9PO1MG4qHVaOxl9KRW22d3ADiHpzpD2j2ty+m7D3mUFMv2w+j6RjspfX1iVwqzRVdcctk8L9ygqx+GA== 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=fuF0kL/DO6/oSG6RBV9NzW6c0cG+cKwEHUHN09awcPA=; b=DYRCKGbhmZ3VWy4GFisEEpK7R21phM+rSqswlDhD4a6uxYB8f3gxTrzS0Kde5LM/UHLflDzD5XFMJqUVt2Rk/luLaynoDplA6X5hhYQyZB/99Q0ex6HKReGAP1d98FIPk4gTzzwVe3GGIvnkN1rH0EpG7KMtmQ1/KW13BHukT0W+5FbJ72zSEU7AFQbZpU/JMdejfAuhiSY7aAFy1S/3Ry5sKBd00k/1irgn0UIy6IF2UwAYtTEaqiKoqpkAZsnvDVey1Img+VE1MPFdgB9bvsEVC3etG3ecnhb6hanfAN/ItaPUOQ6Gei0vYEWy8wcSvU8agMqhqNR8rjIb7sNVzw== Received: from CH0P221CA0018.NAMP221.PROD.OUTLOOK.COM (2603:10b6:610:11c::19) by IA1PR12MB6409.namprd12.prod.outlook.com (2603:10b6:208:38b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.22; Tue, 28 Jan 2025 07:54:33 +0000 Received: from CH1PEPF0000AD80.namprd04.prod.outlook.com (2603:10b6:610:11c:cafe::8d) by CH0P221CA0018.outlook.office365.com (2603:10b6:610:11c::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.23 via Frontend Transport; Tue, 28 Jan 2025 07:54:33 +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 CH1PEPF0000AD80.mail.protection.outlook.com (10.167.244.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8398.14 via Frontend Transport; Tue, 28 Jan 2025 07:54:33 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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, 27 Jan 2025 23:54:21 -0800 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 27 Jan 2025 23:54:21 -0800 Received: from nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Mon, 27 Jan 2025 23:54:18 -0800 From: Maayan Kashani To: CC: , , , Viacheslav Ovsiienko , Bing Zhao , Ori Kam , Suanming Mou , Matan Azrad Subject: [PATCH 1/3] net/mlx5: fix limitation of actions per rule Date: Tue, 28 Jan 2025 09:54:03 +0200 Message-ID: <20250128075406.175330-2-mkashani@nvidia.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20250128075406.175330-1-mkashani@nvidia.com> References: <20250128075406.175330-1-mkashani@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: AnonymousSubmission X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000AD80:EE_|IA1PR12MB6409:EE_ X-MS-Office365-Filtering-Correlation-Id: ded71875-c933-4469-1c67-08dd3f7100c4 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?h6TSHCdHVcbkLT8GWD8BjgdshQTYXYt/jnJQFFpK5MnfgIPNMpbtSCevmpgK?= =?us-ascii?Q?xfysqSLjluE0mk6xB95oOUGbjBgY9k+b7e282zD7lK1A5Wjl9ojw/FLi569O?= =?us-ascii?Q?y4QUV3D6tYf3JNxBf7PScfcRCSZ8tzHVUKzUxnvog18suDw657AlKX7KNAJT?= =?us-ascii?Q?SZirCAT0gotyC3e1l1akzlQyJM65u4VXspCQzXn8BvTTIBweT+yfGzT3IMWY?= =?us-ascii?Q?v6AoL5zaJN+KA+Z8J7I6Yrsq3MhV6TL7n5UyNqpj4ssS4+Tn6g1q6anCtt8E?= =?us-ascii?Q?NHhHE3uLsPvAWkaIdkLb/LOXqnZ3HYgSus74pWz+oF/LDWKqV63NaLKL2vAM?= =?us-ascii?Q?1wfhPT4mjBV9OlPNXIN9HCCs+Wh9EZVoZLvhxyl2FQm8nCow0lGtTrFW8m6m?= =?us-ascii?Q?nMN51xtdvCqXhJpSrxWJoWLiEKFxXMri7nZTiYIp2pALZ4rLRxsA/hyjZVrY?= =?us-ascii?Q?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PNPqTgUCmbENnvi1I?= =?us-ascii?Q?hLXgJoxQC9+0pMbNrHWIi8Df7DgfWu9pInW4yP84YUZ8VSUzRT9XeIxSG5fu?= =?us-ascii?Q?WvRkjDm/qXXiYB3Edb2jbqjSfzOCQkG35HNpMJ3S8mFMWvB8PNq23+PJWEn8?= =?us-ascii?Q?v0xiJlKHjWPwyc4=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)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2025 07:54:33.1466 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ded71875-c933-4469-1c67-08dd3f7100c4 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: CH1PEPF0000AD80.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6409 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 HWS implementation added a limitation of 16 actions per rule, which was incompatible with SWS limitation of 32 actions per rule. Changing the hard coded limitation in PMD to 32. Fixes: f13fab23922b ("net/mlx5: add flow jump action") Signed-off-by: Maayan Kashani Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow.h | 2 +- drivers/net/mlx5/mlx5_flow_hw.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h index 93c2406abc9..445c9cdb4bf 100644 --- a/drivers/net/mlx5/mlx5_flow.h +++ b/drivers/net/mlx5/mlx5_flow.h @@ -1583,7 +1583,7 @@ struct mlx5_hw_modify_header_action { }; /* The maximum actions support in the flow. */ -#define MLX5_HW_MAX_ACTS 16 +#define MLX5_HW_MAX_ACTS 32 /* DR action set struct. */ struct mlx5_hw_actions { diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index 2b627114131..501bf33f941 100644 --- a/drivers/net/mlx5/mlx5_flow_hw.c +++ b/drivers/net/mlx5/mlx5_flow_hw.c @@ -21,9 +21,6 @@ /** Fast path async flow API functions. */ static struct rte_flow_fp_ops mlx5_flow_hw_fp_ops; -/* The maximum actions support in the flow. */ -#define MLX5_HW_MAX_ACTS 16 - /* * The default ipool threshold value indicates which per_core_cache * value to set. -- 2.21.0