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 9387F43FB4 for ; Mon, 6 May 2024 13:45:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22F8940A6F; Mon, 6 May 2024 13:45:12 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2052.outbound.protection.outlook.com [40.107.102.52]) by mails.dpdk.org (Postfix) with ESMTP id 87CBC40696; Mon, 6 May 2024 13:45:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Th5t1Bx502OQvAYKlIJOSUMiJ3vue4wCcSACJ9PUFjvK6vmjWP7fCvwqy6Mwf/czjaCbLJU9BMWeaQ0ClH/hiSjBdHxt/ajJai7Li3iIP7jLtCsoskMwYnZmnmq2oVr73Be/b+zyRubldFxaI9Ko+ZyY0xJGTVO8ckU9zRBarjmIu0B+IWugR6XpPv6dLIPWxA6LvBztCFoNBC3RSKOa6I8jo+vTTA9q+x+UEEftfi4tN1tSPqiyq6waKHLMbbRv5pn2BsBQylbnz0MSa7v1RRaxIDdWI2pnUpZoCI1Z3vbcJu0MRRYlkdE6eyoy7/vpXc3+k/u2cnrlQ9WvI+FXHQ== 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=/0GgSMoRZqy3RyFT3G4stfT9+CPBP6amM8Jigxh2nV4=; b=n9c/qOtQL+WTIRNVXWzD77DgsMvTjU3LfeUJr2G/sPSFv9B1yBBeS9vOvGj+fSFTgLVDzOaRg8FzfvWVkRpWGoDTHjXmz/RabQmMpTfBrS3u6uT9WBzTcjfN1y423wd9YssQLxae4oLfaMyzZhvf3X4LqcxeeB0kGbJ8VfOa01pbeXFU50juFAtn/IFR+p9y9Iam7w0oIwFkssFs/sx4tbFom4s/P6J4jH87CL13AW8xU626pB1IgROBE3UyaOpGwkiJIUriWmIHKTXhNe0uhwQGtf81C2ZAhE/cRXY3pn73z4Swhe9SlE5vFFpSERUk7VB3dfSl7oYJmejDXtgZ3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) 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=/0GgSMoRZqy3RyFT3G4stfT9+CPBP6amM8Jigxh2nV4=; b=Jzt1vYomzMSNu6LRnHGnvzwT8K51I3GgzjR/Af/a6LqoQEVVyWmhKEdAJHBf1JxGQxmZt0WIFn6iTvPW+EvVX11XgJE27a7qwhyHg9hJUav51VN26sQs+MnmfSDHm8hjWdrauPZq8iiZ+ddBuvZE2qyj6s3BTeh/nIQOkHOJJYImOVGa1oSVMDPRd9uhBvBS8WtosO0ZIk70o4m0Y6wIVPW7b9jchs5abn4hFGM5Q5LXBhbJeTtKc+d2lgBUXnzxX1tfp9CZiWlZMd6oVoQl5Rz02gPY8hO4dyrs9M9X4GI/2VRGaCavqyvzkgjSmpmHGRYz+y7BUuuOY+jG4VnCeA== Received: from DM6PR10CA0020.namprd10.prod.outlook.com (2603:10b6:5:60::33) by CYYPR12MB8892.namprd12.prod.outlook.com (2603:10b6:930:be::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Mon, 6 May 2024 11:45:03 +0000 Received: from CY4PEPF0000E9D8.namprd05.prod.outlook.com (2603:10b6:5:60:cafe::17) by DM6PR10CA0020.outlook.office365.com (2603:10b6:5:60::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42 via Frontend Transport; Mon, 6 May 2024 11:45:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CY4PEPF0000E9D8.mail.protection.outlook.com (10.167.241.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.18 via Frontend Transport; Mon, 6 May 2024 11:45:02 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:44:54 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:44:54 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.182) 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, 6 May 2024 04:44:51 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Matan Azrad CC: , Subject: [v2 08/16] net/mlx5/hws: fix code analysis error in passing 0 enum val Date: Mon, 6 May 2024 14:44:11 +0300 Message-ID: <20240506114419.966498-8-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240506114419.966498-1-igozlan@nvidia.com> References: <20240314114220.203241-1-igozlan@nvidia.com> <20240506114419.966498-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: CY4PEPF0000E9D8:EE_|CYYPR12MB8892:EE_ X-MS-Office365-Filtering-Correlation-Id: 324634e8-9dba-4420-64e8-08dc6dc1f789 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; ARA:13230031|36860700004|376005|1800799015|82310400017|921011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?A2Rs0kV3VXxfFe+6OSnQf6vi5FgltN03gVeMdZpYzYZNua0hFk3QBqcrl3pj?= =?us-ascii?Q?FTNBejyyEgw7TdquIZlQkhzNOAXhtDn8HcWCBZ063wK01B4QO6xnobeaZfsI?= =?us-ascii?Q?Bth79TSQIrNrrbhbavmt8xO7Ml7jeYUvunRuML3XcxUxi+TSKk8eu+XUtCbA?= =?us-ascii?Q?LBZ+n3p92RMg95agLIWFUln20PG5+VzJWRRVJdaAHL0YA/WXqq0YeV0bBUxL?= =?us-ascii?Q?jga9zTOLg/2YERY2DElYkqTlnGSnHe55a5Vmk5ov98dgNQpmzvQtQj1YARh2?= =?us-ascii?Q?2HxAnRLX5dIq0fdBGEw/1xSCFkWYZxBjUr+ytw06B5FUrFeTVdScXNFRStSg?= =?us-ascii?Q?X9ojnPB7QjYvucW5luzPi/NnPoezF+JJvYUYVtLSbza6fWcmvoio7zbKIVT2?= =?us-ascii?Q?5FY18WdU/8rrHGkL0szsPsZ2td9Sao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q?0Le2Ivvr0DEVjF3MNUcHDzavfDBG0p5HpgE97rCgn69c+1ZpV1WaEvDxu2b4?= =?us-ascii?Q?FpSApxuClqIA9GIXw6FUr4/FBX+n?= X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004)(376005)(1800799015)(82310400017)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 11:45:02.8391 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 324634e8-9dba-4420-64e8-08dc6dc1f789 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D8.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8892 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 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") Cc: stable@dpdk.org 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