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 4CA2F43B54; Tue, 20 Feb 2024 15:10:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 17FBC4029B; Tue, 20 Feb 2024 15:10:50 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2088.outbound.protection.outlook.com [40.107.243.88]) by mails.dpdk.org (Postfix) with ESMTP id 05AF940289 for ; Tue, 20 Feb 2024 15:10:48 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PHYDeAeSX38MPVT7Rh8cjZKNcJoWZQLT+a7XgjM9h1mO6YYsXF8I/y4gRo/bFzmD1Z/mydYwQt9bKIeNuIfBkDIkboo8vURJjJ+4vq/bvmn3/OMQztEcL2pM7YlUN0375NpuaST0hQX6qUXdiYNKo9T/kfsoKShJwRMK62El5cIYX7iZkDIOpg6FeVJzcQVGo3O5WuSzPOHWL1FAr8TYbtxu6fVU3F3PzmTTeJHkvC9V+RvXfpLDD34pcrxVJkVhJ1OwjLW6+ErIQu7hEVlvZDikEnF2oJxI6GU5sPhKLwjm1LHZD8ogeSsD88MquTTVk6L4RD0v6VDNrFPjLw36bg== 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=NASEmDIPokcoQ7o3OSvSyyCQFbMRT9QjbVX0TOUzYs4=; b=go1SXHUSxqxh76vGvBkjyUeI8nZrYCFHE2GVcVma/depA23gYr5v9M26ZTUIc2fvhd+J6rOaCe3O/3YKEBN7a7Q0dmWzQFdx/yHAqwH3EPmgX/sE+FHqbfgc33Wd+HyzXWa//rCorUYBMGcEO4M1+0LLin1TKZadXTUz0+4gk8ipCXx62X3KNYt7yoMb17z5mvGOLraPtaTZ2gnIs9u8Yg/AftRvM5HN5uUm5Dv6YGQ/8SWswmdc/TxL+Pcq1PAesOgygEvmYJuKuoW65+mUIoIz6B8Q5ngtSghCc16Ros9h1rNb7xXo/3d/JC7Z5Zjs+PHTOeFBlcYCoYGrpJXFxA== 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=NASEmDIPokcoQ7o3OSvSyyCQFbMRT9QjbVX0TOUzYs4=; b=IaKo+xhVi4q042b117Ylgk/XNkjwBi8PmXhu0YqNvp5SednJxBhMF3I+G3G8u8krPNu0PpuhgyKBGgtx4dGAQkWSOgnkM11FRssdHa9tzppAdyoxN1OhAl8ENOUaYa/Frtl8vIja2slOIfhQ4DiRW4EAjw7UqkTPQjLvHp2oncAA9lD3u6hlK5MWKQZDMq7+AnmvtP9Nsz/z7Kq18heyPOlseD7RzOXhSDc5bThGwePf3r1uax6JXoUUUFRL6nrIom1fVkkGVLg2uFtPfL/2rUclXZswrDLzBszM2ye7hi2ZCIUW7zqrOIt8xoVwfP6zkxn4Nxh4g9br9NZgEDz4dg== Received: from MW4PR03CA0355.namprd03.prod.outlook.com (2603:10b6:303:dc::30) by BY5PR12MB4098.namprd12.prod.outlook.com (2603:10b6:a03:205::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.12; Tue, 20 Feb 2024 14:10:45 +0000 Received: from CO1PEPF000042AE.namprd03.prod.outlook.com (2603:10b6:303:dc:cafe::3) by MW4PR03CA0355.outlook.office365.com (2603:10b6:303:dc::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.39 via Frontend Transport; Tue, 20 Feb 2024 14:10:45 +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 CO1PEPF000042AE.mail.protection.outlook.com (10.167.243.43) 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:10:45 +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; Tue, 20 Feb 2024 06:10:26 -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:10:23 -0800 From: Bing Zhao To: , , , , , , , , , , Subject: [PATCH v2 0/5] NAT64 support in mlx5 PMD Date: Tue, 20 Feb 2024 16:10:03 +0200 Message-ID: <20240220141008.292641-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: CO1PEPF000042AE:EE_|BY5PR12MB4098:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c09f786-d535-4018-7c34-08dc321dbaf5 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: eehPNyB+ccuUWtPToaeA9gcEnqmQlGofEYMehhW6DvlUDMb1d84CkCn11uBuC75iWgq5S61MJmUFBPJMbifjPvriHydK+6FSA8RzSllHosAyvE28VCb+2vFKkk5JyuMzSdcd7hLoc4GzT2I5ApDRCVYLY+/hRZQAp1/Fe07DtufeBuyq9Uo1/GqCEpIu40G48ycfKVMKdNvtwRfGJqO8yGOSopjh6HESSj5hJN6UGBPrDvClmPKEaI1Cq1FbPazHZOvWQ7yCoCfLaDYP8r/aQB6q0Fkz+0FXClUg5RXNRivOHvQybIM7eXkeJdbI1OYp9evsrJqTnN51CXuprR1uabez8V8yC8Bc3sXnQWaycB0fiWYrTtCzZp5E9wocPpKlMF5EI31ZT2+oCW+jXfNwPFKJSTrzX5A0twzA3geNxj5MuXtW6Ui331cn+j0X/hIQ6hVBvJoLGwcEsYEHsSS4ysk6JOISiafv0sYAGwl7hB31QY+mCCKsPFiYnYsiThaH3yJJTQJDFUiPT464QtGdBdVVNqORlgUgIDEbYGNaydkJUZM3FG5xgWDF5Zl2s4EynNrv0MbA04Nb2wUTC5gl1H3eZaLLh/3bc9+y2gGj3C1yfOApx+YL2dGVkUrKrX7c1w6z96arMfLw3jgjhh98ndUlIMFuGZX0L6KIEPt1PcE= 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)(40470700004)(46966006)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 14:10:45.0608 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c09f786-d535-4018-7c34-08dc321dbaf5 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: CO1PEPF000042AE.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4098 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 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 | 437 ++++++++++++++++++++++++- 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, 687 insertions(+), 2 deletions(-) -- 2.34.1