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 0E91043B54; Tue, 20 Feb 2024 15:38:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D42084029B; Tue, 20 Feb 2024 15:38:13 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id 1414E40289 for ; Tue, 20 Feb 2024 15:38:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=njAEPhEGQOYgL8J2pNhXZwz+87lzlAjxy+JieovkOceUhwnslh3HkIGhFl+NcpC1L0l+sEVPZ4sBs3hX0H2wvSPDXd7MoP7wT68gmo5lXhbsz/bAnGsGr/sE+Y+G8TneNsaq0yTkHoqgbIWJPSyxnjUsrDnpNkHO2EPwrAQa8Fux2QHBYsbE6NxPIeaKd1GEPSD50Of9IUBzi0LpEIFwY2yTvfik8NwBrkgZ+VbRcfnSHI8q7z7NoiDFSqa5TBCTWAHuo5KSl1bzsCfWfkZa369BPP94ZCBHXoeSrr/mXCyAdmmNOroGHzu9csRirsAmX8AH6Uv/JKB3GcCc3Kruww== 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=k2rtWeUz52Ix43sYzRfepf7xnoy7sy8OYqD2FH/8dx4=; b=QY4Tu2qaqU0hWgJVGnO3GeW0AGYBFZ4aRycrHMptw60HWw67bba3rYvdb8DbRK9hi3NsAL1RlNQvklkPG8MpPx1yEpQJVh4eq/2IpHjlfvSDKeqXjSIbhVysu56Ar/RNalw+hGdhYa1Qa8IzUyNwZ30Ib6tN+OvCLBjYZ43H/zmwcG6yE+kmqOTYKI7NOIRsYNVOZamIP6OxJ5pnh52b1NTUdAGJPH7xMfnoLUp5JZl6BxmKJK1RC+VskRsFVq75DHm/MrlJdXNCNbqbxiWbWcqPOcPQj15fhAlVeJvW29HyNbYQ19z039Fk69yDNCpnLSU7WhRDU5H3WHQdEIeRoA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=k2rtWeUz52Ix43sYzRfepf7xnoy7sy8OYqD2FH/8dx4=; b=gSyoNVsQf4XpowribAJpTPKCSSusRHjOMvRTKYtPyERmSvcv/mbKShZLZNjhsGmVxI3DOgWS/b2EkNb/kjwCUZdigDpSlhxpPTjSZp7uXL2q11n3iP9V/tdZZwQkkMZGU19o1Erk+0OavMA/NojBkTZAfHwe3BZ6cu1P5yB17DkNOTYFSr9ERVAIvwvEAw19NGMN4f35UM4nJN2aWyivUyuNFAaLJqqLBI4Y+jKQ+LqhDosLKgKSJOOrZvEzOok23L1/riDAUqE/Qc7PNPzWwC30mzLPk0IUP6AH25/bBwqHj1dp6X/vTJoPsA25Peu33pSmLtUZxlQbCoU2b4Yz7A== Received: from DS7PR06CA0006.namprd06.prod.outlook.com (2603:10b6:8:2a::7) by SJ1PR12MB6217.namprd12.prod.outlook.com (2603:10b6:a03:458::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.17; Tue, 20 Feb 2024 14:38:09 +0000 Received: from DS2PEPF0000343C.namprd02.prod.outlook.com (2603:10b6:8:2a:cafe::a2) by DS7PR06CA0006.outlook.office365.com (2603:10b6:8:2a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.40 via Frontend Transport; Tue, 20 Feb 2024 14:38:08 +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 DS2PEPF0000343C.mail.protection.outlook.com (10.167.18.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Tue, 20 Feb 2024 14:38:08 +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.986.41; Tue, 20 Feb 2024 06:37:53 -0800 Received: from nvidia.com (10.126.231.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; Tue, 20 Feb 2024 06:37:50 -0800 From: Bing Zhao To: , , , , , , , , , , Subject: [PATCH v3 0/5] NAT64 support in mlx5 PMD Date: Tue, 20 Feb 2024 16:37:26 +0200 Message-ID: <20240220143731.295140-1-bingz@nvidia.com> X-Mailer: git-send-email 2.34.1 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.231.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: DS2PEPF0000343C:EE_|SJ1PR12MB6217:EE_ X-MS-Office365-Filtering-Correlation-Id: 981f8836-8a14-4ac0-f95b-08dc32218eac 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: i7h2aFNvBAEC3CMvn/7t4DToGRzB1jAaaoEs6kDmyxbJlRH5HOtGAZBwvq3E0SIyEy3pgAMnOP59KmQaJpihaKb4AgXkO+MnEj+44Q/KhexnoFwAczY3jg0mGoFDUb1xbTt1TDij8tQgVkMPSuVk3Pw4IiRi1T9QZaHaZnQ9HUH15mNVs2oOz76x9t2hIKzLVKk88G59q0ILZS75oweEdM2weQcQHWCtoaSKjhMdxOPrF8tAUoGf5zUb68Z/2fmgnr2FWXCB8YpGxxSpiSZf/+4tSSV2GyzuiWZrFWODat4UlFBJuS3m2vv/LrHA0sCxMHnbPc2HY87d88qYl/QypCjz3o4dDSh964nijA3eN5/qrWiXaF2AGR3zN44/I0VJgvrKktrOU3zIOzm+SkM5rIFVnKdO64jqb4jZ/MYmjZs6HG3kZmZcAt8ND7fFQiRcAYAcEr2wVd7PdsBWF/TMK/tokV1qiVkbKz90tGba6bMRHuEd0WcxNiVNWbR+OKIjzTBoYBpdP0RLijQbcwaBVfjE23AKHikgDW3gNwXXX9u95d8Obx6ZYiwA3ASjp8dV9pFu2cqQg339oQvy+Ge73SiKWTNqnlPU/NlzgUBDia2PeQUX3FO+0KFsPyA8yY2P17XAmljqOdXiEff/rxfVeLrnj+fB8sy0AEPMA33VidE= 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)(46966006)(40470700004)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 14:38:08.6903 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 981f8836-8a14-4ac0-f95b-08dc32218eac 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: DS2PEPF0000343C.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6217 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. 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 | 8 + 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, 686 insertions(+), 2 deletions(-) -- 2.34.1