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 2B58543C2E; Wed, 28 Feb 2024 16:11:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BE27B433E5; Wed, 28 Feb 2024 16:11:01 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2072.outbound.protection.outlook.com [40.107.243.72]) by mails.dpdk.org (Postfix) with ESMTP id D7DE340DF6 for ; Wed, 28 Feb 2024 16:10:31 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cWEPVwcDBhQCwP1F9UCv3GPbI8ABq0AcYxN1tIGSY1yKvQq1UR1RBpe2GX4a03hG8+HPuWiqWFMZEaAD7ArqtdoUObE9uTeIAdfmcmkq4e435XCaONIxYQ234i00xeNqWj2Z+7//JkaI4Z2rhqzY83NXdZoDt65VrImk4Z+rZga1VS/rnX7swYEuBSeZ1LmoWg9ueRSSi/UrakhDrfOyu4ZNBB+B/zDE0hFltjWFxoPuZNDyPQIg86kMgzkn49dTfW0qC5mIoIolLSZREQbE7cXAVC08VmU+YrBFb4ROQKRf3aj47s2vf0FrEP4P5oWgxBwnhVq9hkNu5gMqL9iQNg== 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=uI7ezvwFOu9KJcg/IQTvw5Grft1B3q2N/K4f4IEBShE=; b=Z3d29+g8Z1YBgIXr4uZs7Mp88e5bpb/F+MB0I40d+SPY8jFph0pVJgbYUApzdCtXHMY91F7SdGm/QLD7umV5J/TDGmV95IqwQkLzZGIJ7OD7Ogj5+Cpl8d5WdidKFg3PibQJSiWX45zyuRVA4e1aiTjuariRmhMSNMiJhxr/X9C3mlkWyHDCCSXzqmUN7Vmjs8q4asxn+RdX36i8jw+HBlCva0CbjBQaoQQ7Ofwn3mupXLODtew3rfxV509sgDykYoXhI+cyx2zge3QxRvUA13tqUzMvAqDmcmcur7XmXcMAKShzOrgV3X5bTAGFyplG8cw21oDXrlbv2QKU/X38jw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.com 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=uI7ezvwFOu9KJcg/IQTvw5Grft1B3q2N/K4f4IEBShE=; b=Dr5YXg65zKdQbi9/E1vSVHviJ6/Tt9Uwlq0GCmheo1boYI7a53GfLq2JgIQGcJYmHbwW1yIKDOE+9o2a+gSjVZTR46ThZVza+vscq5arodXchWZH++Epy1QgTEx5hDXJzvth37CJmDRov1oo1ZejmmZoWZBTnyK83DyMLbe0yUGRfGTLyVREmXrEL82GPtaf7nC0uRZUU2LqcT2I4YXy9ZiC9VmP+vO4PNideVLlsaPRPnaDwZ7+SgGdEjLg3PfoCaO/Su34pdSh4rnIp2EFAgzDVOSLLj06zXsUM1O3fXnrlslCRczG2Up6RUm/dFg4O9eBJRgbeFKHXYXLv13OPA== Received: from MW4PR04CA0248.namprd04.prod.outlook.com (2603:10b6:303:88::13) by DM8PR12MB5415.namprd12.prod.outlook.com (2603:10b6:8:25::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Wed, 28 Feb 2024 15:10:29 +0000 Received: from MWH0EPF000971E6.namprd02.prod.outlook.com (2603:10b6:303:88:cafe::cd) by MW4PR04CA0248.outlook.office365.com (2603:10b6:303:88::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.28 via Frontend Transport; Wed, 28 Feb 2024 15:10:29 +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 MWH0EPF000971E6.mail.protection.outlook.com (10.167.243.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Wed, 28 Feb 2024 15:10:28 +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.986.41; Wed, 28 Feb 2024 07:10:14 -0800 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.1258.12; Wed, 28 Feb 2024 07:10:10 -0800 From: Bing Zhao To: , , , , , , , , , CC: , Subject: [PATCH v4 0/5] NAT64 support in mlx5 PMD Date: Wed, 28 Feb 2024 17:09:08 +0200 Message-ID: <20240228150913.32603-1-bingz@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231227090731.2569427-1-bingz@nvidia.com> References: <20231227090731.2569427-1-bingz@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000971E6:EE_|DM8PR12MB5415:EE_ X-MS-Office365-Filtering-Correlation-Id: e3f70638-45c0-48d4-a4c2-08dc386f6671 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: YnbvbvYzUW1JWl/59epO54EzngUAAh3hHpCaOAHeg2g4ZPWc2W3tdzN/hNrMYcnRCdixElahJ0Zv70JSmeg6VU1xWL9hJznOPgRxYqD784DvbNQE+ORyrYTpj/V/OOJUV+Fzo/hCgFW1STdLcGmxvb2pmp8C2KO7MnH5+Ho8FdR3B9y4H1pWXCAyGGkP1EyBQo2IT122pt5COMnIUM11IPYbB1rNcs69pzQFyvMNx8qGZJnjvLYaiueRglGOQoERFdBbk5ajHLjarRa8Si29Wx4bf/aAPWR6OZWzPMwXzuXT3SXgCvx5QhmbrBfchSz1mSztMqTUwylYLSmYftrG/9SopZ8nJ/TJiNPyfYDabGbkkuIg6/zmKSRYzgTag9H3dMbmKDZXZL1uuI3crLGH8dRnCN/I4UMsCfm+2omq4/2kwSL4P9YQJnc17tHCb2osti+54R+XGGXWZHpna/xhwGdcKp9EyIB4v9147o9I4M/bt1oPnojUVZ7rWyVXk3w0KhE/2VYh2OmNEdgH9s1/16G9yJZrrYIABasm22mL6zi6e6Ra1BjyzUr1CWo+pCwB42rmiOly2esvibB8Sp38W0Ve1t/RBL+6fAkLrJ+ddHewWb5Aa33y4xuapyG4dcEBxMMe9wNfu0TnxNk/eY+9g9RdaJ3p5SKx6tCaIpJ56Y9uU9zEEgUE7nBWyrgeZ3jOOrNBXGOWr5hmXuLFUA3ydynFpjz7vusGQ2NTnMY1qKeOrF1/VKIgxxcHZbRBCm3FGn927yyJYjTbd4h8j5BjbA8xyv4tkGV3FDIxdk9YKVMQBuTnCg4jGzkxTxANkCbu 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:(13230031)(36860700004)(82310400014)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 15:10:28.9766 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e3f70638-45c0-48d4-a4c2-08dc386f6671 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: MWH0EPF000971E6.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5415 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 This patch set contains the mlx5 PMD implementation for NAT64. Series-acked-by: Ori Kam Update in v4: 1. rebase to solve the conflicts. 2. fix the old NIC startup issue in a separate patch: https://patches.dpdk.org/project/dpdk/patch/20240227152627.25749-1-bingz@nvidia.com/ Update in v3: 1. code style and typo. Update in v2: 1. separate from the RTE and testpmd common part. 2. reorder the commits. 3. bug fix, code polishing and document update. Bing Zhao (4): net/mlx5: fetch the available registers for NAT64 net/mlx5: create NAT64 actions during configuration net/mlx5: add NAT64 action support in rule creation net/mlx5: validate the actions combination with NAT64 Erez Shitrit (1): net/mlx5/hws: support NAT64 action doc/guides/nics/features/mlx5.ini | 1 + doc/guides/nics/mlx5.rst | 10 + doc/guides/rel_notes/release_24_03.rst | 7 + drivers/net/mlx5/hws/mlx5dr.h | 29 ++ drivers/net/mlx5/hws/mlx5dr_action.c | 436 ++++++++++++++++++++++++- drivers/net/mlx5/hws/mlx5dr_action.h | 35 ++ drivers/net/mlx5/hws/mlx5dr_debug.c | 1 + drivers/net/mlx5/mlx5.c | 9 + drivers/net/mlx5/mlx5.h | 11 + drivers/net/mlx5/mlx5_flow.h | 12 + drivers/net/mlx5/mlx5_flow_dv.c | 4 +- drivers/net/mlx5/mlx5_flow_hw.c | 136 ++++++++ 12 files changed, 689 insertions(+), 2 deletions(-) -- 2.39.3