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 F240C4410A for ; Thu, 30 May 2024 05:43:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E79034068A; Thu, 30 May 2024 05:43:26 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2044.outbound.protection.outlook.com [40.107.100.44]) by mails.dpdk.org (Postfix) with ESMTP id 7BFD9402C6; Thu, 30 May 2024 05:43:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bh/TrXyVBOEHak8Mo6wDrJulE8FL3GY3xEa/sN/xrCMDRK/tKOSJ/WmMHn4htLMpD8D1KPajvghmNLRdiClPeKlYpeqQxyJ40t86WBMUIwbXlPRnCsva3JI3OZtFI2h0SyEWbFKiHhMXj8T9PL65hOquaLTSj0FewaksdPF01PFor5qgPf1LG0oNgKrpfQbs22wJuF3nwfSIgXXxRsvcjITQZBbPWQR0E5YfM1nW8oyTDGimxwr2KHdcpDz3ZlkkxKViszXbG2hklvj5qx7ntVXlVVSaG+IGyJtwsD17hAvtPd83aAhh5LNwN3OHYSvdUDNMasw1tiWxc68Efue+oA== 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=0ACmnQC1okXrBnk+ysTUJiN0805xp+Xa0d9XiiBd3iE=; b=Fwgctuz0lPRgvcBThP0sO9YCL8OKORZSZ07/uKWUg/0E86BWcnTyap4W7G6Uwhd0ScdmmAnGlCVYhP2zgrnaMFEfnQLkEgaWdDvb2CtCzR6fUiTtYW7dikBmZZU9MiNvoy2zM2JetZnBchC9tm61A/LAEocr1yUiARyVze5L5Kx+YJe9TH2b4MtaqatxpUQjVe3pM5nSgOuB/FNoRsZmXO2zl7CZPH+DdTE5ZSw2/X4Bz/JWRO/oa++Lz0gkFat1zA1x9SzreLKo2V8QrTJbmDUrGFN2HCshzo+ai6DFel6u9rhNKz0mrU2qyK7q+kTQ+tHO54SNmC+Avg+4XePa9g== 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=0ACmnQC1okXrBnk+ysTUJiN0805xp+Xa0d9XiiBd3iE=; b=Wi47VO2vXG++jLyLkkRUAxwhInsEekrHfJa1BL+kQCO7K5l927rBHn8AXDfaHiRsSSE9E0rRNkILhUCVGsGD8/zO+ciFU7C6BnX93/E+pHD0HHGHX2GTBtKM9Yqee2qC5kLd76Vm7Cz0l0wiwgayAv713IThJx5U338uUloO+M1Rsw4KBYSZuog7F3rSInK4mXEhCznWjfKr9nLJtH4tguG/4SaqTg7XX4g8mvVq6TJYSPVXD4cXV1NN1V7d5+usQnn9Trn8xAI7Xzh7chgHzG57L8Vob9qErKe3qhxNM92zX56jf/7P8zeP/4aFah0ugB7obqpleE1JTxlqoU8doA== Received: from SJ0PR13CA0030.namprd13.prod.outlook.com (2603:10b6:a03:2c0::35) by DS0PR12MB8504.namprd12.prod.outlook.com (2603:10b6:8:155::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.31; Thu, 30 May 2024 03:43:22 +0000 Received: from CO1PEPF000066E7.namprd05.prod.outlook.com (2603:10b6:a03:2c0:cafe::9b) by SJ0PR13CA0030.outlook.office365.com (2603:10b6:a03:2c0::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.19 via Frontend Transport; Thu, 30 May 2024 03:43:21 +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 CO1PEPF000066E7.mail.protection.outlook.com (10.167.249.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Thu, 30 May 2024 03:43:21 +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; Wed, 29 May 2024 20:43:09 -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, 29 May 2024 20:43:06 -0700 From: Gavin Li To: , , , , Dariusz Sosnowski , "Suanming Mou" CC: , , Subject: [PATCH] net/mlx5: fix flow discover IPv6 traffic class support issue Date: Thu, 30 May 2024 06:42:52 +0300 Message-ID: <20240530034252.198797-1-gavinl@nvidia.com> X-Mailer: git-send-email 2.34.1 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: CO1PEPF000066E7:EE_|DS0PR12MB8504:EE_ X-MS-Office365-Filtering-Correlation-Id: bb357c4a-e108-4929-f93c-08dc805aa6bb 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|1800799015|82310400017|376005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?h6LMgwjYoJTJefpV9jNfwKetekZWQc4dFfG30jRb3Sb/WdvqzcRXgU5P7a0C?= =?us-ascii?Q?yuyKdRyTkOB0F6bpL7JNoKov2E/kXbP5GrjkyuAcmTAsV13zwGKq2kQ2bnhe?= =?us-ascii?Q?9BAEG7Tm+9JFwnK1v23ahUcE1D2dOIXmcPVYY4fuaLGEB7eU+9v8APK2qs3Y?= =?us-ascii?Q?oG5Oa7lMB7rUf+hlXcmjGge4qbuMVJCSIIe9whBVc6doSbr/Ao+JucBo7Gmk?= =?us-ascii?Q?rKYQ5Ahrk9L6D7AudWFW2gNs3RiSRRCEzoUyMIYBH6bG3yKjWsh2jAJ/RLwM?= =?us-ascii?Q?TWsRn1DdUy1heG0TUudb2ZWmwzWmj4Enpq76/Qs/4tyKCN7ONzYL/8ZWltYC?= =?us-ascii?Q?gfz174NNa539EpCBNFn8gLeya4HYK5FxjCsuyr/tVYTT6G4yOUv8sse4+Yrp?= =?us-ascii?Q?Sp1ksXUu/tuu8Eq5BreBmgoZ3xFh6g7YGPo0Xyan5EbOGiJ09/dq61lwBEbN?= =?us-ascii?Q?yOIuV/5V/Ea+MVh48qCVpkqCrt9osEF0TO++A7ZE3BmsyuHi/44pUPpdcsh5?= =?us-ascii?Q?oHBqJcPEjhBYWelqlqWIWuBaxsAP40Exl7wNuFOcYJhgyeo4wZvVShAv4hVY?= =?us-ascii?Q?o3a9PLA7Vdo2jBoOPKKG/utuOpj9ATkcq0GyCGVBTUSj8luPPfBdqrj1YDKW?= =?us-ascii?Q?rLi7yB7pHDge3cAT+qBoVzAvWDhZLNiHfEc9WfriPXRsk5SdCYQwdGN2OT1s?= =?us-ascii?Q?PUfRgs1yAp/lh6vId5g1PL2KW7V4gYhlCCOST4PItKuz+b+o3Kb8YgUOzqAn?= =?us-ascii?Q?yntsFOyP7NSorQ0G8Qz/js2wMLRoM0719825wZY7INJjoojSxOsVu08vmYVx?= =?us-ascii?Q?UFPfcG4ntER0XOrze7uzlC52zN9GFxaRj/SUzAjdDV3rZTzZADRbsRHvKfUt?= =?us-ascii?Q?VN6E2l1zQGkldGpQMkA3V3jzjVS+HquevJT8Fha7G750pUYaWU5K1Zv7SSbN?= =?us-ascii?Q?rPOCAFPa698Y/ALi0t5mWA9BMWw0p4VhuKT3yGOhlEnUJyuCWv8ZxIpp3Qi0?= =?us-ascii?Q?p80/ZUj7mGkcBgNsgNafc4IfMgtd7gLdXrc31jT904ZeN8KnMde3bm0wjr+z?= =?us-ascii?Q?YmGnAh5aAwWqixEUfAi/A3yzXLBWiOcLhxwAngGYEC07tnyvD/CXJSdMf+su?= =?us-ascii?Q?X2QUlMwwTm660YwS5NPkEUWjdoheQurD1PoJCGLOblZ0PcZqZ1xGJjZaHmrb?= =?us-ascii?Q?in/zbtJEkevlC8ZXWgw8VesEBGBc8x8v/B6vNy7oYc3IAYYsxwERSrRsRdzH?= =?us-ascii?Q?Lr/G29D16gBRYXfOQt8qALoJmQ8/ePQD11Zl0YN+6T0OyA6q5AKah8wAv4C2?= =?us-ascii?Q?4Lg+aP3L4buW+HXxOngW9zPwRlPs4lqRv5Ey74IaxB/dZ9Ogy5Nn5nwaoDtO?= =?us-ascii?Q?7HX/FrJjefl+H1zGcHCrguTWgJI9?= 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)(36860700004)(1800799015)(82310400017)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 03:43:21.1735 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb357c4a-e108-4929-f93c-08dc805aa6bb 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: CO1PEPF000066E7.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8504 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 ipv6_tc_fallback will be checked in calling mlx5_flow_discover_ipv6_tc_support. It should be set "supported" before checking so that the workaround to use old value would not be used. The corrected result could be gotten only in this case. Fixes: edc80bbfcf54 ("net/mlx5: store IPv6 TC detection result per physical device") Cc: stable@dpdk.org Signed-off-by: Gavin Li Acked-by: Suanming Mou --- drivers/net/mlx5/linux/mlx5_os.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c index 6dd12f0f68..de3df17108 100644 --- a/drivers/net/mlx5/linux/mlx5_os.c +++ b/drivers/net/mlx5/linux/mlx5_os.c @@ -1603,11 +1603,10 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev, } rte_rwlock_init(&priv->ind_tbls_lock); if (sh->phdev->config.ipv6_tc_fallback == MLX5_IPV6_TC_UNKNOWN) { + sh->phdev->config.ipv6_tc_fallback = MLX5_IPV6_TC_OK; if (!sh->cdev->config.hca_attr.modify_outer_ipv6_traffic_class || (sh->config.dv_flow_en == 1 && mlx5_flow_discover_ipv6_tc_support(eth_dev))) sh->phdev->config.ipv6_tc_fallback = MLX5_IPV6_TC_FALLBACK; - else - sh->phdev->config.ipv6_tc_fallback = MLX5_IPV6_TC_OK; } if (priv->sh->config.dv_flow_en == 2) { #ifdef HAVE_MLX5_HWS_SUPPORT -- 2.34.1