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 74A2843A3A; Tue, 6 Feb 2024 15:40:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 22CE141140; Tue, 6 Feb 2024 15:40:20 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id 1CB7D41101 for ; Tue, 6 Feb 2024 15:40:18 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hh1wCKND8TJN9kaF/bWBgEpfsVRvJRvMI9uTN3rlCTDKoMr1yb1o9Q4jwDKf075zt8xfo+WIrTAvxUgksuYuYWHjM7pQhhjvtL7YbawBpASkg54Ofl2PQu/jtxF48lfkAqmpNM/cBVf1458lbskSeCyubRqqreXOSV8mJvVrdVKDJfOD7h3JV2/EmRK7FAeXq3beQQaXZIRk5ga80j2xTaT6QidM4qsEmEA7GIiXR2o+BfQMJNODlWyqRS3ZT8TTpszboAzEABFwwP6OZ31LhPzAf+wKP8p6lXadH19Jr6Oys3dGRCl0me0rI6KzGY48MV7vGHRqJ9skPg6PsuMyrA== 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=+vqtNTEzOqV7ve+N03x8pzCjTV2MmAgrgM/cZuu5udE=; b=RB4hxXbHYWRjmzI7CfQjUOBxfGls8Ubp0mieVEazr3yprpJmV1cJItRxGdJde2Ua9Jt34L5Y7rfyKtI/ehEM8OYa/TTDxs6ffPQhRlEjN23fFI3Hxtc3AYr8sjDziCzfMnoCLmbEXov9S7tf3bYw8j/zutnlUJcgQ9bj1wA40+t2jexxandTj9YG3Z4QaE5f6X08R07dITFHQAVLJ+XIjYq2QWIzt44p1Tj0oN5+eFCo1effBsvQxF6ArAW+epkfd9e8om+nAAGZWZCD9d8PgX2U3r7rdLNMbCXNuVjZG/f/mDvaTYiq28CR+ahnV87FOkTcYXpHRIFdxtVYuT35GQ== 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=+vqtNTEzOqV7ve+N03x8pzCjTV2MmAgrgM/cZuu5udE=; b=R3/ZoDdfYSt0QBEWato0/iFvkIM1SfmVja893AZVMnmK5zaLYUPFI1ufSMaZ1aWo0w+e2jtlEwgwjEY9qkHFySySnTnZhr5RUtaY+n7OZ7nkmekajtTobJHX7GelixHg6OmqzyXZIDv8ChFW3D9Mmxj7sKdh9rsyFjwCYHFQwO8qDPJUW+vKGBh79e3s5m6/KOebHXTviccWah1l41Qa0hzRIB2uN41J/LGe0Wk1y7hqazsDQNO8Ly7ScIN/fv6w2y2G46KPxedqf+gHT3cGmWiEJl6CcBxrC57WF+dK5u5Dr64wXCnhkkZBQcQc/ATAPioLRswvzpNo2oQyCMPL4Q== Received: from DS7PR03CA0254.namprd03.prod.outlook.com (2603:10b6:5:3b3::19) by SJ1PR12MB6364.namprd12.prod.outlook.com (2603:10b6:a03:452::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.14; Tue, 6 Feb 2024 14:40:13 +0000 Received: from DS2PEPF0000343D.namprd02.prod.outlook.com (2603:10b6:5:3b3:cafe::cc) by DS7PR03CA0254.outlook.office365.com (2603:10b6:5:3b3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.34 via Frontend Transport; Tue, 6 Feb 2024 14:40:13 +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 DS2PEPF0000343D.mail.protection.outlook.com (10.167.18.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19 via Frontend Transport; Tue, 6 Feb 2024 14:40:12 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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, 6 Feb 2024 06:39:57 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Tue, 6 Feb 2024 06:39:57 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41 via Frontend Transport; Tue, 6 Feb 2024 06:39:55 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v1 0/7] net/mlx5: support copy from inner fields Date: Tue, 6 Feb 2024 16:39:43 +0200 Message-ID: <20240206143950.1499532-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF0000343D:EE_|SJ1PR12MB6364:EE_ X-MS-Office365-Filtering-Correlation-Id: 0b9db1f9-c7ad-4811-3a7a-08dc272186db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ch1p0DomoolW+jCZwn/G9G2DL31+bUhZQY51/XtXP1CHmx0OpJNjfFzAItMv/KWtKFUrapFdG9Nam9zTanG2e7GxZh1XZIlBIc2/Nrhi5UCxCymTKguW3s9Gp2RS/xFQINchUDzJFP/dNa9V7mwLtWhyqHa7jPKtOm2bSY37C4RkNFr/5SWia/gAvytIrMGw3iocSjjz81q+5mqr4oI/RsYFD6oQ0nAX4hlZeItI1o2CuvbpM5QBTiAjvLgEEN04d0F5E51dxmrGLqf7nqixE3nH54q9uO0sZut505BFbD92MJgQ1k+9T5ofLHb2RogQh41MjovwAZfeJ4Fg0zSo/w6YGJosJRFCXoUf3NiD9inAhcJSEPijpxa5mIjy9i/p3eX4EqDK3eA7jIUGzwPX3stsIZllKYVH/av1BUi+gsTIRCHpWDcUvQR3dH+k521zKouPdnLzMSj9Yhy8GwC23h+AjPIzLRFy1Od7kk3GgZGkEL1bfmhvrkDsdJLprZwoQ4gbXR3QmyFI41YzISa/gkdHh2ZQkBa2Zp/RTPGyf9pX6bLGIbTFMVmt/kGTEomxk4ZR1t3wr8i/j0/NTMbAAJFalmAXYEHRgpNP4YRcGxFQqI2amJZQgfy0FQO1E669RS+Uwley5j7YFQtDpgwfgpWEflealGUoER25qig2v8spcWXrV6iCU7shd8ny76OMgiR58DyTbcGJbLxiILVX51wXh5sALKci2dctonaTzWc= 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)(4636009)(396003)(376002)(346002)(136003)(39860400002)(230922051799003)(1800799012)(451199024)(82310400011)(64100799003)(186009)(46966006)(40470700004)(36840700001)(316002)(5660300002)(55016003)(8676002)(4326008)(40460700003)(40480700001)(8936002)(2906002)(6916009)(54906003)(70206006)(70586007)(426003)(6666004)(83380400001)(41300700001)(36756003)(478600001)(7696005)(107886003)(6286002)(336012)(47076005)(2616005)(82740400003)(86362001)(1076003)(26005)(7636003)(356005)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2024 14:40:12.8123 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b9db1f9-c7ad-4811-3a7a-08dc272186db 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: DS2PEPF0000343D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6364 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 adds support of encapsulation level for HWS modify field in MLX5 PMD. Outermost is represented by 0,1 and inner is represented by 2. In addition, modify inner/outer us added for both IPv6 flow label and IPv6 traffic class. Depends-on: series-31008 ("ethdev: add modify IPv4 next protocol field") Depends-on: series-31010 ("ethdev: add IPv6 field identifiers") Michael Baum (7): common/mlx5: remove enum value duplication common/mlx5: reorder modification field PRM list common/mlx5: add inner PRM fields common/mlx5: add IPv6 flow label PRM field net/mlx5: add support for modify inner fields net/mlx5: support modify IPv6 traffic class field net/mlx5: support modify IPv6 flow label field doc/guides/nics/mlx5.rst | 28 ++++- doc/guides/rel_notes/release_24_03.rst | 2 + drivers/common/mlx5/mlx5_prm.h | 49 +++++---- drivers/net/mlx5/hws/mlx5dr_action.c | 4 +- drivers/net/mlx5/hws/mlx5dr_pat_arg.c | 2 +- drivers/net/mlx5/mlx5_flow.c | 12 ++- drivers/net/mlx5/mlx5_flow_dv.c | 136 +++++++++++++++---------- drivers/net/mlx5/mlx5_flow_hw.c | 134 +++++++++++++++++++++++- 8 files changed, 282 insertions(+), 85 deletions(-) -- 2.25.1