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 F21F943BED; Mon, 26 Feb 2024 14:46:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D09DA402C8; Mon, 26 Feb 2024 14:46:23 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2064.outbound.protection.outlook.com [40.107.237.64]) by mails.dpdk.org (Postfix) with ESMTP id 9D0D740144 for ; Mon, 26 Feb 2024 14:46:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AzeDE2OZZxwZKUi/+ZnuZOO7hMPIDmx4OAHUO6UUQEB59zDgF96RAiSevSG/JsPmM4TZaBLcnZ/BuCZT/VSBgIaBmI/Yb4VOQMHlZHcv/SRSIx4oxR5XiIMJ+cv7MqI6q0G4nsdIX/h0zp9I4qGRb0nqGFPynf6xAqpTJ7Q20O+GRt6DMTCksY5ii7Cbf6L3CkCEf48mWGXq8DSMRXZ++gsm/bUZkXARwu5ufU11YidW3KZDwCjyOucFCQKW1XGqvt4cPbrYqLIMvzHCnyv9yXuhfhht4Mcp51O4+jK3qev5reKSTZbkEbXcs4dPwUr/AGWhWK3zrlqEDEnGLOb9Pw== 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=apnpORy3vdvtDvi2DHT1QSBu2yuazwKPNCWEbD0BshY=; b=C93f0z/aTuLbBREmig7S49dQj0iU4v81HQedU5Ikz4w3+DMRVmymGkoHUEgMeC84awu7RMS7HyQY2n16zI4JGU5CH7bVslb7DVlDk/dqzEcLf7YIKW/+SBpyfTh6sYn1X3rrKHIRDIKNyVxEo2RbYTqWJAVQSOVFEdZfqbSDpMvkdsBQje6bAuFeErDVpaNx0IVOgFgRpp1gMtIGZMiGN5eEjiBOFIJ/uQ7A4ol8htC4RxZCvU/I56m/913CMCgdazCYWyBxc7wmMtfWZOX9Jih90MDTxLt2Scm124vCBNG7D4y83Qsp3Br25DNRLKCmGdpeXJTNYbF/NWNG2/arjw== 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=apnpORy3vdvtDvi2DHT1QSBu2yuazwKPNCWEbD0BshY=; b=GiRvJ9/iw71qI4/ybIA9GlJU1CJYAlKs39V0nxY/r/HmnRoK2qE7u0+SVdjYv01C5YhPtnjRuYiQkNeH6Xfhi+/WUuRbTcC4D5ZoEJEyKt6P+oZHcyPttd+sC+Q/wxMbnPq9GqAZ1X1k3eJvstrsuUjYA4rl+aPWe5nM3duMvE5ZRBrmAzi2AAdlClQ68WbD39RrwYdQTe/eNCQvR+k2yaY6sQ0K/6ItK6ZJ2zEm7HJPVqMM2SzIcqKKfOiMVbMx8bBInU5155TBCSgOZ7WlvvUVE/hNInFAeD0QTX0YUGI24+GdN1BAdc+44nNY9P28zT1TJO/i3sl5zGyIi1ad4Q== Received: from DM6PR02CA0053.namprd02.prod.outlook.com (2603:10b6:5:177::30) by MN2PR12MB4079.namprd12.prod.outlook.com (2603:10b6:208:1d5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Mon, 26 Feb 2024 13:46:19 +0000 Received: from DS2PEPF00003446.namprd04.prod.outlook.com (2603:10b6:5:177:cafe::46) by DM6PR02CA0053.outlook.office365.com (2603:10b6:5:177::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.49 via Frontend Transport; Mon, 26 Feb 2024 13:46:19 +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 DS2PEPF00003446.mail.protection.outlook.com (10.167.17.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Mon, 26 Feb 2024 13:46:19 +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; Mon, 26 Feb 2024 05:46:05 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) 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; Mon, 26 Feb 2024 05:46:04 -0800 Received: from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12 via Frontend Transport; Mon, 26 Feb 2024 05:46:02 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v3 0/7] net/mlx5: support copy from inner fields Date: Mon, 26 Feb 2024 15:45:49 +0200 Message-ID: <20240226134556.2985054-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240207155533.1582031-1-michaelba@nvidia.com> References: <20240207155533.1582031-1-michaelba@nvidia.com> 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: DS2PEPF00003446:EE_|MN2PR12MB4079:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e630d58-1cfd-4967-c677-08dc36d14fbc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IEmOhYDiiV77609QGKVlV7BcrNyYv5L+rGYgCR2jIgSGMnkmAKDsRIlMson/FwaiM5PS8eR5/eSl6jb+bW9hvXNpTVv2kEEk/7Ddmi5N3cl8C6oe/DcZFXHW1OCQl1N3lplEPqi1SYSJeHYI7s5692VVoPMyrUFy6OaHsbws1aVd4hibpdwE7sCQg53tRHEtvm7dpXOxtRys20OWXi3+9qddW81Eq3kz4ABpfZle0/kPZ0lBjvUty4dBK0JLyMqLc0/kdu7twmlRX9mN+V7vKBX60ca+nV5aI8QISVMDnFs32JJp9inlMDeuG+lYc52uQFWAvNEXxjEgVa6D+ApdNxqYAtzxPjYV5Ppmxfzd/16mGBRaptvpblQsy8mCyjQAQdOfn+183vStyuEeFqIBXLVYgkIiJVBc/gGRC/udVZjZZ9v3yJfVcHI1jlP/8oIydo/tPux8zN623w8K4/2R3G8ph9LCr4q6WD7ZcDXgvzpQct4wiPYbpLZm3F6ZrG6ozA8mheDLziBByiyZj0kRAp2lfUSzi8kk1+Z8MaB/AYnnYPl/IFO9oNyXhFgh2adVTqSjjUSQd1b+MlhyJhGQpjn+2QoeupBtkCA1PWXkitDcrfWwRjygjJqck+0nuWUZ8IWc+hrxwhmqBMWtevbTG+7GoXF5NEpiiCHzb6N9dvMRLQCBLUhaelzvbJGV2qP4C5rcFJ0FNhH/CGbKpoOKQEL6rbhBkcRc8Tb+RZwtn8ikMXpVBhWqLCzp6QerBgsJ 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); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 13:46:19.1260 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e630d58-1cfd-4967-c677-08dc36d14fbc 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: DS2PEPF00003446.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4079 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. v2: - Rebase. - Add "copy from inner" to release notes. v3: - Rebase. - Add "Acked-by" from v2. - Remove the "Depends-on" labels. 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 | 3 + 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, 283 insertions(+), 85 deletions(-) -- 2.25.1