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 D7CFA455B6; Sun, 7 Jul 2024 12:14:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC949402CF; Sun, 7 Jul 2024 12:14:11 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2066.outbound.protection.outlook.com [40.107.92.66]) by mails.dpdk.org (Postfix) with ESMTP id 884CA4029F for ; Sun, 7 Jul 2024 12:14:09 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fmCzTh3V+Z25owFa/3HoRtHGTH8ecx+JMpRqdxaqsZOKnoXPotjFFantjhA4KNgWwbk69GWfTTI15wdkWNb+O7zI5WpnDLnCIi+0zhjCJK319xsyd3YwL5Mi0fLWlJK8WWUQ4aCzaiEwUU6lNqvXaeHhRvWDzhmdXU6Eh+3YlWAQBLwNkIKPEirBm3vmbqzHstLWYopjriOZIT4tLt7GofsAyVFzu3+Q+RjPwr1hH4xk+HxfozuucxBRh1vG6YvsLcDjwSsogbRxRGlgMYUqezZuBzyWqGLglQ3tNAooCBWXI586Xb/nWjg42fbXWBSXFT1bCd7rh7/Sc2Fmb2dH0A== 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=guG3P6yDt2BVGmJYq0FIAYcxH7yJzhNjMwf9GJhVFas=; b=MBWpBrPf8cY9IliVDpxm0vlz/FUGB+L5slYIESaZpUO1gxxx5/qrDxrcNhmUiQo7cE7nq2iqHMRZ9/IWB/fkwjpZFtYEpTbxJFLN7mcRe+OKQMgwhXLwcnRM43qGHNKIfXBerfQNlaYbPiW/EYCyBxquwIWklrhTVk+MSEgzTTA5HIx1R3nB7hxBUMxwFXq+TEuDE36XaIXfGXbpbQOEzU/TmutmxxgA3clnoIoCIUAuncjhUfgY+kE5ZyPiMtXLscGzgkDGBmcuXz/d6cFGVVkkqT9cMPrWUUbUABKfpREGR9sDKWEnWJ12PaJA8f3T9HYxXfmL4o6izBxOM22liw== 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=guG3P6yDt2BVGmJYq0FIAYcxH7yJzhNjMwf9GJhVFas=; b=I/9c4lAxj9Q5vVU7hiip9KWQT9MimxZCVm/47vssvB6XRjyOxIZuswjoQ/UScjpZmRLzPnZzL8WbYZYrELTbDf5Rdty5t7tuFiqvg0Y7E2C52ZVBtvJDR+JSzqB3yMGDRubbgEFuva+549qsMzvRajFx5Dr2F8TCEH1hZFNiz6D0GVHhH8cIFv9AwhInqjzEwUs282KlP50qPeo+6dL3lfKp2j0uXhrmUJNun2pjVjtaFm7+6NYmRRbhG4aPm8dZiaPupSVRKpNhJfROZCmr3pvUbC1x6vBm4cIelto0lonaeFDKUUoHESPH0f7Jy1On7P8PVkl+4VBmcv23prIzTA== Received: from BYAPR11CA0037.namprd11.prod.outlook.com (2603:10b6:a03:80::14) by PH7PR12MB5973.namprd12.prod.outlook.com (2603:10b6:510:1d8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.34; Sun, 7 Jul 2024 10:14:06 +0000 Received: from SJ1PEPF00002324.namprd03.prod.outlook.com (2603:10b6:a03:80:cafe::c5) by BYAPR11CA0037.outlook.office365.com (2603:10b6:a03:80::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35 via Frontend Transport; Sun, 7 Jul 2024 10:14:06 +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 SJ1PEPF00002324.mail.protection.outlook.com (10.167.242.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Sun, 7 Jul 2024 10:14:06 +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; Sun, 7 Jul 2024 03:13:59 -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; Sun, 7 Jul 2024 03:13:55 -0700 From: Gregory Etelson To: CC: , , , Dariusz Sosnowski , Viacheslav Ovsiienko , Bing Zhao , Ori Kam , Suanming Mou , Matan Azrad Subject: [PATCH] net/mlx5: fix IPv6-in-IPv6 tunnel recognition Date: Sun, 7 Jul 2024 13:13:41 +0300 Message-ID: <20240707101342.49823-1-getelson@nvidia.com> X-Mailer: git-send-email 2.43.0 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: SJ1PEPF00002324:EE_|PH7PR12MB5973:EE_ X-MS-Office365-Filtering-Correlation-Id: aa668e76-2c95-494f-d391-08dc9e6d88ec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?u6SF3XOcpndh20zvQXOKdmPuehTDZjiNoyYeUOljcS2bgTamtR6FlDmNhWui?= =?us-ascii?Q?dY3C7Zi3nTdGFTc8lSIsFyOesTUiPl6Hp1SgaV1dJnjNIBWUy+RAbmQVF4eg?= =?us-ascii?Q?u/JCOBIIpR2uNQokd9gm2T1JegMWJ+E879Awd5WSg+F0GkEx8hZqvNGzEyrG?= =?us-ascii?Q?hUw7G8cu65i2+pMs21akZQuexn/t+ZUVtR5o1AnXLaRwllsWmeHsasvCUFXJ?= =?us-ascii?Q?NDOhl8ebFiTy0dbuatXPbQZKnAjAHhdbkQBFTHCHXUhx731iCJ+eht6QVB86?= =?us-ascii?Q?FPfBsyedIyxAfp1zeVXTrrF/wlMRrgMHW3CVv6YGqgbh38lEPK4rhu8PPNPA?= =?us-ascii?Q?xHIVbokxK7v0B9WjSx7BM4TERifi4lV9R+9qMY6jWX6U+iYPAi/BCGeI1R0l?= =?us-ascii?Q?d2ZdW+Xvtzxg4e8alIDrloYDnLKbkcvtXOKrtv/I/Wa+NlsH1v0CoSGiVQ3W?= =?us-ascii?Q?Ju0JrqqZ0g8aTRS9Qp8qN9a1JcJlUi6s6zSxYTleZd3D4rE14yLfX/zVEuH/?= =?us-ascii?Q?7DqKbTaiFnp3ckSMPiWPlC5f9uMwNoyfxqBKZFavX7ngLet8dLQbbkZmQ5Kj?= =?us-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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)(376014)(1800799024)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2024 10:14:06.5301 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa668e76-2c95-494f-d391-08dc9e6d88ec 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: SJ1PEPF00002324.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5973 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 PMD did not recognize IPv6-in-IPv6 tunnel if IPv6 routing extension was placed between IPv6 outer and inner headers. The patch fixes IPv6-in-IPv6 tunnel recognition. Fixes: 80c676259a04 ("net/mlx5: validate HWS template items") Signed-off-by: Gregory Etelson Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow_hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index ad8d73a089..7c9ba4e819 100644 --- a/drivers/net/mlx5/mlx5_flow_hw.c +++ b/drivers/net/mlx5/mlx5_flow_hw.c @@ -8228,7 +8228,8 @@ mlx5_hw_flow_tunnel_ip_check(uint64_t last_item, uint64_t *item_flags) if (last_item == MLX5_FLOW_LAYER_OUTER_L3_IPV4) { tunnel = true; *item_flags |= MLX5_FLOW_LAYER_IPIP; - } else if (last_item == MLX5_FLOW_LAYER_OUTER_L3_IPV6) { + } else if (last_item == MLX5_FLOW_LAYER_OUTER_L3_IPV6 || + last_item == MLX5_FLOW_ITEM_OUTER_IPV6_ROUTING_EXT) { tunnel = true; *item_flags |= MLX5_FLOW_LAYER_IPV6_ENCAP; } else { -- 2.43.0