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 A7E6445962; Wed, 11 Sep 2024 18:06:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8CD5542FFB; Wed, 11 Sep 2024 18:05:57 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2062.outbound.protection.outlook.com [40.107.92.62]) by mails.dpdk.org (Postfix) with ESMTP id 8C15242F85; Wed, 11 Sep 2024 18:05:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rLHy/PQGvWvNZJvCrdKLhYZbUxadS488P63f48HNNkp18Lc7+Y4OFXhtEnKdM3eqcqvb316s8xSbIck2d7otrzeIP7x8j2179Ic+SWUaYP5KEK9wuqQLtTCcJ99q0w0OAKZ8b1gGZlSiVLcfUfrh2hVkw27DvmjXNdnYqwL4g8fSC1/XiFotLQGkyPatJL1fQ63dIV44ZykX75hRsRcpYbUVbrK6quvGGHdaL/eCD2I0LBzDnK0+jGZ83PiaFzfcmCvbtL/4xj+qZ/Rrf4/acS9lJxXUUmgJQpZPsCCsInrcYhcFs71WxdayyuoB72Ea3z9MxzlwechTbuW8vDG0bA== 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=WxHZ/KZ+fOmWRJZ6xpD0Cwp2+Sekc7yA6omiF5+YhTo=; b=VSgKf+DQSfIhDBcjp+wbdiUYiTUXouEOyycYA75gdymRWP6h3rEKxNlvIAvIQe5c7sfwXh/wtDjTto29ukYbZJ61drj8g9CbMu29XgnT64MnHr9fqILlv34pzD8OBAbJ4gnI6W45DbLFx15NJz9d/DHsoaHCLZS5IoY5R/APbdviYkeXzYY3djSMB142mqpsnL6wZdvMdKYMNskwZ9AwX6omQrtHruvF+iPg5YrtMSLEhR/ujpZIKb8fabrVsrm6sEy782sSfzn7wAuVQtb649KxSv4yiDtdiPUYmzZyruBxjW35LMdGhAeq+nvBP1ddLWPYVrLUAHSZuZZmFWDb2g== 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=WxHZ/KZ+fOmWRJZ6xpD0Cwp2+Sekc7yA6omiF5+YhTo=; b=l5A16nsZx+DGrE3VW1g8XqCy7h4AEr+Knu3Yc0s0qmOd8gO5RhmAxj2D9eGCnu4rPRQjumt+9+v1eLd5+I6Bw2kMqC9iLDGDDJKFkxCGT8gdQTCM3Es2UXRLZju3DdKgphOo4gRmzboJRS/LXLgTkTe5wnBrhsjNpX/mzKSIgfuiKeUYAopx8LbrjKYJ8SXbzdt3n45a/Am8masbX9HF6cTCsm12SYmqLuuiR4Nfd/ZTDfUsUbw7tDYVlGtTnK1TZ245BS2Coxed+lEz+K/kOmakwsFkXrkdOm2auUJulAupWKM7u3F0a48ip2lpy5Td3zEMnUN0gu9O/3qCxpMc8Q== Received: from BY1P220CA0023.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:5c3::11) by CYYPR12MB8750.namprd12.prod.outlook.com (2603:10b6:930:be::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Wed, 11 Sep 2024 16:05:50 +0000 Received: from SJ5PEPF000001D0.namprd05.prod.outlook.com (2603:10b6:a03:5c3:cafe::3) by BY1P220CA0023.outlook.office365.com (2603:10b6:a03:5c3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.26 via Frontend Transport; Wed, 11 Sep 2024 16:05:50 +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 SJ5PEPF000001D0.mail.protection.outlook.com (10.167.242.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Wed, 11 Sep 2024 16:05:50 +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, 11 Sep 2024 09:05:35 -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, 11 Sep 2024 09:05:33 -0700 From: Viacheslav Ovsiienko To: CC: , , , , Subject: [PATCH 5/9] net/mlx5: fix number of supported flex parsers Date: Wed, 11 Sep 2024 19:04:54 +0300 Message-ID: <20240911160458.524732-5-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240911160458.524732-1-viacheslavo@nvidia.com> References: <20240911160458.524732-1-viacheslavo@nvidia.com> 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: SJ5PEPF000001D0:EE_|CYYPR12MB8750:EE_ X-MS-Office365-Filtering-Correlation-Id: 048727b1-d484-40e0-42f9-08dcd27b9aef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?sS3tZm8z5MEZzULhr/UefPCUKKN7+7Qg0YmZbWWHqWHlIwD4xorgkXlDIpPX?= =?us-ascii?Q?Fpj8I0RDqaXX4P90CgWZWl2SWUbW+qVbiDvbKbRrrCUc6sqwPpTNXan8gpi/?= =?us-ascii?Q?3DM57pNHNZRtmZWQYZsR6Sb7SwM2dtyAzGA9Uch5NNDcrchcRBzLNslDDv/e?= =?us-ascii?Q?FHyEQLJKzxb34VkEtfmXcXhKfB4780agfZTecnbICTfq2L3MjOMlLuTbUBzD?= =?us-ascii?Q?L6QBQLF7EIAH84S6mnc6D/HE4PLA64VQgs3z6zOLAj37QxGln63z9pAyiVWu?= =?us-ascii?Q?3dly8fNSmPM9dTabHFj4JViC/2lpzB1+NCNbJyoqSQmXDsnoaf6rzutiLaWY?= =?us-ascii?Q?NpVvbhQ1TcW6zCYHna+RRjmG4Ynw8WFU4pTJydpBJltBfl2blNMvBMK/aQFp?= =?us-ascii?Q?f1SRD5SHggp5yuIuWsSEwiVCISBc/TxDFezUI0HK3dIAI2LuGpqJLyBhgIHM?= =?us-ascii?Q?h8p/VfosqgOoNCXg0g4CpjKhfj9sDPElQ5AHL+/SUOo8Tlt3ki8sgddJk/pX?= =?us-ascii?Q?eeIFTGw7+kOEpapyO8DDYYmd7qbEIz4alEXWI9aHqO0eFXiEo6mYZ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ThsAI1EpJXkjADxte7Ykr6m5uXM?= 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)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 16:05:50.0699 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 048727b1-d484-40e0-42f9-08dcd27b9aef 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: SJ5PEPF000001D0.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8750 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 The hardware supports up to 8 flex parser configurations. Some of them can be utilized internally by firmware, depending on the configured profile ("FLEX_PARSER_PROFILE_ENABLE" in NV-setting). The firmware does not report in capabilities how many flex parser configuration is remaining available (this is device-wide resource and can be allocated runtime by other agents - kernel, DPDK applications, etc.), and once there is no more available parsers on the parse object creation moment firmware just returns an error. Fixes: db25cadc0887 ("net/mlx5: add flex item operations") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index 6d163996e4..b1423b6868 100644 --- a/drivers/net/mlx5/mlx5.h +++ b/drivers/net/mlx5/mlx5.h @@ -69,7 +69,7 @@ #define MLX5_ROOT_TBL_MODIFY_NUM 16 /* Maximal number of flex items created on the port.*/ -#define MLX5_PORT_FLEX_ITEM_NUM 4 +#define MLX5_PORT_FLEX_ITEM_NUM 8 /* Maximal number of field/field parts to map into sample registers .*/ #define MLX5_FLEX_ITEM_MAPPING_NUM 32 -- 2.34.1