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 4A82A43CA5; Thu, 14 Mar 2024 12:44:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F1E1942ED3; Thu, 14 Mar 2024 12:43:32 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2067.outbound.protection.outlook.com [40.107.220.67]) by mails.dpdk.org (Postfix) with ESMTP id DDB9D42EB2 for ; Thu, 14 Mar 2024 12:43:25 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OElncAeMDkZsvsKBJzZxtGPH5DvoQrgGSwJSbHzpsesZig4gRNRcRRzZMNxopm3PC54wRxCTN5TJoQ2s8a1gQpq1m+r8k/bxCIhmK0z99zpb+qM2auoRZ6VCsiJ+6bdWFQ2ekIGw4XcChidKFE3a+gLSq7sL/osFAsR3yIuxJSi8r4Wy9kS3OeYeS3hHYvpjoh1Mz6WoANtk4gpYIAa3jn2nWNKtqx0hidzQeemSRBj+gbT1N1gp/CSEelIqxhRnVvHXsCC2Ai7DVU+reIqWNYyUt+nWww3JawtdkDXp3WcQkhhcT/r8zywPvCf9z7NHyAEBV6KZSVs6LyUyZw7O1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=joWw8dgTN4HLo7Ibc02JRRIO18JJAARl6LVloO63wo4=; b=nGDfpEFj2HVkgqFXlu0s5LFeHoM0b6zrR2d0CvY+pgZPJ/kiV08xcWjEas+JJfaXjDWYQ2DKHHSJFfyfTNIR4EMH3/4n1RymF31F9z8ZBe31BTd75cDZOWeSdZkrXIh8r8Z6lzq8NEADurXB5oUSnsPzVThGXS46tOAJtqVGL3Y7v0yhGKXTSZf05a6arQqncxhQi2QHNb8qqpqrhLo40o/iSNVzJjgwSBI/QsGDRzgLTLoriMc4GHIGpU4mcekcdacqic3+l4R0MrEG88FJPFHa/DcVeRuopm0Wf4vjTfe+c+Vqn4MbNg+z75fQ/jhYz9VwvkNkB8k2/efFhrmUSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=monjalon.net 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=joWw8dgTN4HLo7Ibc02JRRIO18JJAARl6LVloO63wo4=; b=gKTcCIf0dI0RgOG6W/jvmuadW943EtyPgYdMF539kDOUSvmtuZ81sbR1bLz5sNOPpYSN4ZZoReNP8bFI5KvPwAzI4MmdJ5UWiTelmhUl4zIevtroq6F4U15fjZAyCSNEBPHIsNVaS8JjgFZiXRRNPTHFweXaOzqk7/F4Tmbw4vIZXSe67Tqu3WSS5NGDDgLOZa4LsmvzY9Jtyu4yk80cKVlFrklt29N55uPH7S2Sj9kkPG4bYZnVDjGuy4uNRWPqLjZX+O+FsrhIR8Vrg5BziR5idBCrCr7GPJdFfdoV3jJgu6rKzOHkqQ8c+UOQz50qj7TJZk8rAfovlsF47A1zPA== Received: from CH5PR05CA0005.namprd05.prod.outlook.com (2603:10b6:610:1f0::6) by CH3PR12MB7521.namprd12.prod.outlook.com (2603:10b6:610:143::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21; Thu, 14 Mar 2024 11:43:23 +0000 Received: from CH3PEPF0000000E.namprd04.prod.outlook.com (2603:10b6:610:1f0:cafe::6e) by CH5PR05CA0005.outlook.office365.com (2603:10b6:610:1f0::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.7 via Frontend Transport; Thu, 14 Mar 2024 11:43:23 +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 CH3PEPF0000000E.mail.protection.outlook.com (10.167.244.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.12 via Frontend Transport; Thu, 14 Mar 2024 11:43:23 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) 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.986.41; Thu, 14 Mar 2024 04:43:14 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Thu, 14 Mar 2024 04:43:14 -0700 Received: from nvidia.com (10.127.8.12) 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.1258.12 via Frontend Transport; Thu, 14 Mar 2024 04:43:11 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Suanming Mou , Matan Azrad CC: , Subject: [PATCH 08/13] net/mlx5/hws: fix code analysis error in passing 0 enum val Date: Thu, 14 Mar 2024 13:42:15 +0200 Message-ID: <20240314114220.203241-8-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240314114220.203241-1-igozlan@nvidia.com> References: <20240314114220.203241-1-igozlan@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PEPF0000000E:EE_|CH3PR12MB7521:EE_ X-MS-Office365-Filtering-Correlation-Id: f1f6b0a9-4e65-49ca-881d-08dc441bf466 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MpCpaNMqxR6V11sDU81zg8rnL2+kiq138BhuI+jHfOrWTvQCXPgrSDyZnSXR0YJVG5NdbWo353G2bVKvMYPI6HytE8QvNUuqrXuhZDQ5jc0tq2G8BrUFL8yCKfsjCTWrhPtzNyqW6PMyjgsnaRTcjbA9rIvfvTs4GadJbAsyFQlmYE3S+ghq9rsrOYql00Wzztv6xkepvdTgFcJzqz5cJ8tqNXFntVn6IJExcE/xjNxJRMZIdlOmlK7O4dDXWBSFZCvxMcecC7/Z/BYJj/CDIXl3mWXSVMriIROD70v8qHv3GY76pO35qF61cUvYqPsfXomQwnU/LI0n/MPqM6yiFywaAqlI+RaHi6St45d3GAqHpjGT8JPmF1vfoO3NEQ+jG3OYnEmFJDzGgrsAejYXFxRe1F4w+/DR4Ev7jQTmvfgdDKtujm6RWDOhLDBTzwmnAFtMVySd2Y4cD8NrfKnGsRDqbrlvKTV7h+gRgUtCOM+344BisFgveyWuNDZvEJH5PA+Fk2yUdw6xSSN1pdm+J8mhqKx6d6guPbbuZaBhoGLKtXv8FAT8MvGP8XPhdRrmftNyd2oqqrx1hflVQG3A8cjTt1LombuTlocJXMhm/huH3HjxJRlMccHQVH87K5FiAMlq8ntp9DEBzWbrNaY9WcKDB7zjnauDiwCUF3qj/2puy9PDz+YqK6bFOW+r99fSrZmQgSVGqXWcBHBWdDzVksmn68CERvj8RIgUCRqy5rxZnRKMbKMyhwGehpv4T/IpRxt8yK2IS2K4p/w7nu6KfA== 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:(13230031)(1800799015)(36860700004)(376005)(82310400014)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2024 11:43:23.3372 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f1f6b0a9-4e65-49ca-881d-08dc441bf466 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: CH3PEPF0000000E.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7521 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 From: Yevgeny Kliteynik Instead of passing 0 as an enum parameter, define flag NONE. This resolves the following code analysis error: "enumerated type mixed with another type". This value is currently used in tests only, and will later be used in backward-compatible steering API. Fixes: 5cadd74fbc08 ("net/mlx5: add HW steering low-level abstract stub") Signed-off-by: Yevgeny Kliteynik Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/hws/mlx5dr.h b/drivers/net/mlx5/hws/mlx5dr.h index 80e118a980..d2c426e679 100644 --- a/drivers/net/mlx5/hws/mlx5dr.h +++ b/drivers/net/mlx5/hws/mlx5dr.h @@ -82,6 +82,7 @@ enum mlx5dr_action_aso_ct_flags { }; enum mlx5dr_match_template_flags { + MLX5DR_MATCH_TEMPLATE_FLAG_NONE = 0, /* Allow relaxed matching by skipping derived dependent match fields. */ MLX5DR_MATCH_TEMPLATE_FLAG_RELAXED_MATCH = 1, }; -- 2.39.3