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 4F33743AA0; Wed, 7 Feb 2024 16:55:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F059040295; Wed, 7 Feb 2024 16:55:56 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2061.outbound.protection.outlook.com [40.107.212.61]) by mails.dpdk.org (Postfix) with ESMTP id 307C64026E for ; Wed, 7 Feb 2024 16:55:56 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TA8r9k5tgTODnxNV6KjQpfISIVmUfPmOEsC6rmfingqOYNQzmChGbXywMNaOhU6ZoMdN2GDe+y9Pq+2cCvagzfgzc/Ne/8PMjkIVsaKzFklNGoyzNWbOrEfG+Dv68fDjxQreAaKzC3Sj1f/5PLUCZZINE4/xFPzwiqMjXYfED1ywXWxm4UWXvlT/ypAl17twC4zBAJjkZLztrjmKCMw9lWKezn11Rw4Qa0ZUHONfyi2nj68uJFILxfdD2Lu9VzVYAvalkCZlUucVtWnRVwOlWxblCJk/rlu3tbzj4/uQ7IXO5Q8I4kiW1DmLEHZt6NRVbw6u4fj3eMau0Fwc+qMM+A== 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=/q8OukNnrEFPj+uGNn8AF/rqr69F523BKU20ngMHAfs=; b=haS+XApF2UamzssVh0z48lBPp2MZSXPD9KagDt3E9iuSVN+4wUFnnGnhzvji3u0Ga+bSxKYLzFUVR4gtVN7/1aqrY75W+EMNyuWvegmbR91CdKS8rySgBEl+DYeZVud/8KktfaHDlDSOJgu2Oh4twPrjn+JWmOmLySwp4On47fhOb1yIP1zdbjoTbZei++X5HUeiZzWYGcf28bPMtqP47iqJQM9c7V0C0AKgpZZKOrYN35lCBnU8QhPoCpO13ubvLrjjuuAcX39hgmAn+uFiLO0bk1TVdZffokKCVhUXLrUMHem9QX8Z5TF22E252E3XwncUfGEisTHAAX7XMNWFWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=/q8OukNnrEFPj+uGNn8AF/rqr69F523BKU20ngMHAfs=; b=M3+oRSQZotHPyT1GkCDeM8re3hKDqlIyS7iFQgrq29UosVhfKRmjRu/8zmrODEka/dW062/X+gPjydmxql2aiL6ddhWMkLjUZrh5HR7/HxCHSv/qqhCgu3vBwWjg6CmbBgojq8ZTGaYYk9QmVmJDqoNaWJrqacP8h9iRq1LeHa6xWl+Zms6PH6bRMavc6nXZ9IuKFVMMPt+YXTeLr3tY9w0q5jU3yyGKk2ccNStrCh/ei+7tSKzwFR7qJNZWxhjnVmFB27y/e8VZ25VppQi3gcN4NSJX96X+nvwKUG0Rcfv54qyzxdd7r0hXvrBfWuhExwZFdO35OolSP/E3DFlZeA== Received: from MW4PR04CA0109.namprd04.prod.outlook.com (2603:10b6:303:83::24) by CYYPR12MB8938.namprd12.prod.outlook.com (2603:10b6:930:c7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.17; Wed, 7 Feb 2024 15:55:53 +0000 Received: from MWH0EPF000971E9.namprd02.prod.outlook.com (2603:10b6:303:83:cafe::3b) by MW4PR04CA0109.outlook.office365.com (2603:10b6:303:83::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36 via Frontend Transport; Wed, 7 Feb 2024 15:55:53 +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 MWH0EPF000971E9.mail.protection.outlook.com (10.167.243.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19 via Frontend Transport; Wed, 7 Feb 2024 15:55:53 +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, 7 Feb 2024 07:55:39 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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, 7 Feb 2024 07:55:39 -0800 Received: from nvidia.com (10.127.8.13) by mail.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 via Frontend Transport; Wed, 7 Feb 2024 07:55:37 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v2 0/7] net/mlx5: support copy from inner fields Date: Wed, 7 Feb 2024 17:55:26 +0200 Message-ID: <20240207155533.1582031-1-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240206143950.1499532-1-michaelba@nvidia.com> References: <20240206143950.1499532-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: MWH0EPF000971E9:EE_|CYYPR12MB8938:EE_ X-MS-Office365-Filtering-Correlation-Id: 78c28471-7ec7-48fb-22da-08dc27f543ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p/6ufPt2n5W1qpjprKF5dqXO7VQg5HNuDob0ULWdNluEsUQHE0BTwgT2Rc3GUimZ1b+aEbyfi9KTshcqMTGwqJ8u+2GlHagrR6elNllrd9aYDqqJV32IDla7eryRJiZUcqOAM5/RrcmLRfUyKzLlH1GGNEChw++wLBR37DtHu/k6kSkm06SIfX+Oo4+uhWuentPS2cKXbivhAFd2MGbhmtcW2fkw+1+vpeXf+eD2C5Th42rbqhzRJHdBB3m1nNUPQaD03/mUkq4EA9iBg2YeZczekCyanVwDqyQYlGbZubUhb/+4LYrz/oxxoAqrbXP0i5HtQUMzsdkY+Uh40venmse+V/ksruQ+hKIv4WyA2AV9JbMHwUfpzD+metft+SM2G/E2oPO1ChfKwb2ws7mOmlQClf2BDj3ep1QqNuvZqdPdU021O+/kkT+1db3B/HoVESj22K4cyR59EaDbqXNqUKisLHZ/5qaYc1R/PWKaj5/MDbsO8R6becHGer7Y45xLHhHqS+H0ZiTMGucUMbBV76BTG9Zi5P+Cbh/kSPdW9PzroIhKrcd8sxrOKgSIxmPHr+f9e/5KCwfGy19Hi53Kz9tK5nomw3w5hIRw/UiaNT29hsEW797hhuRqAIjY28hqETyKtwvmWRInVjcaNklLES8NYBI3lXPRpRYHeuMnEGi+rZ59pZLEHaDRmLwIZtsmJUq14ipGWdBQSH/BEDWEYtOAFCjEY8FNTF53uVl4aAo= 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)(4636009)(39860400002)(396003)(346002)(136003)(376002)(230922051799003)(64100799003)(82310400011)(1800799012)(186009)(451199024)(36840700001)(46966006)(40470700004)(36756003)(2616005)(82740400003)(426003)(1076003)(336012)(107886003)(26005)(6286002)(47076005)(55016003)(7636003)(40480700001)(40460700003)(356005)(86362001)(7696005)(36860700001)(83380400001)(4326008)(6916009)(41300700001)(5660300002)(8676002)(8936002)(70206006)(70586007)(316002)(54906003)(478600001)(2906002)(6666004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2024 15:55:53.4786 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78c28471-7ec7-48fb-22da-08dc27f543ae 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: MWH0EPF000971E9.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8938 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") v2: - Rebase. - Add "copy from inner" to release notes. 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 | 4 + 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, 284 insertions(+), 85 deletions(-) -- 2.25.1