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 55F9B43A3A; Tue, 6 Feb 2024 15:40:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FAF0427DE; Tue, 6 Feb 2024 15:40:25 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2040.outbound.protection.outlook.com [40.107.94.40]) by mails.dpdk.org (Postfix) with ESMTP id E156A4026B for ; Tue, 6 Feb 2024 15:40:22 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MsAl2qi8l6W+wKuaWBMx44dzJoEJBWnGknHcXxLGkPvkS1f0f5k8C10DoRQONsRfGvQbsgc4yxUpBCildvMj4j+UdCuFEMdf9ilCW0jMxBvr6shXTrb1zpjqqMedaPQxrI1Qp7eqWnHr+t0ijccodCv0azOMAmmCqh8Ty1D6+v6c7eNxi1ijGb3WH/MtNkcU/A7V68GX8KXAONjcBW1A4FeY2mHt5vapZTYlhe7OKWPn7EIul/emTYyse6VQs/KQwn745ahs487KwHb4h0kwo5FWiJ0lumDRbcp4Oto+Ml1UL3l/F7PqFWWNwXtpNy+hlmC39grUuGs6zVofVkHDUA== 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=BqE7E4LoagW57fobompzLpccmy4yqmIjtcmLilaKktg=; b=oDXKHEyn1JsYmw3dtR4NDa2SsEk5yOMPNwEW3AUpP3jw91bCRpB7h8LPuclE0gwAXXhEb7XwV7ItbM2RDZv74imlSMRTjfMa/BEUiWHwslRXyabDVK9dvi08KhwQ3s+0PvVFStHosPbsT5xACYMLMeKi2m+qfaOj+J1NyjetunBojv2TZcL/kHo8yXmE4ZLBbWZPHoHaY7PSD4GQPqEuwItYLDBrYNazdrtlmTMIx3Ue9yL2N4+RZ2RulH0gLeZAsRMQFBTKrMMk8C4jiRsE+Gr0eOPnJqVea6ox7VT9liROLgyxSGmd5eUfzeBekmih3BaHZdchm+i5fgCNscr1kg== 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=BqE7E4LoagW57fobompzLpccmy4yqmIjtcmLilaKktg=; b=dIpuFQhKhNgKac2aaVZRc9G8t2J5qUXYfqyVtGX57iDnvEOybNc+9EjwLQc34ZjaP7OOfdVvMIFreeUP2j/ouxbs3V3KR950N3vmZHrBSKyQnf/PfoYOEWk6ATHjN1IWcR8uU/7itGKVrG0kdVA/kDcP8gvCXE+JcG7CDx44ePZGQXb5uZuMb67EE8EzrhEtjtJ083pdA06S7wLHB2Syrh2rAL9SZZTy7HdO4ywQOh4E1TIQpg8KatOevkwNqmc6gWnVDu+05as/3l/WCbP37p8VZDdtd//aU6qEo6DOjrU7XAb2xp9fWlc4H37VDUgVHHTsKkfrTiOaup+2+h+plg== Received: from CH2PR07CA0012.namprd07.prod.outlook.com (2603:10b6:610:20::25) by PH0PR12MB7079.namprd12.prod.outlook.com (2603:10b6:510:21d::8) 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:20 +0000 Received: from DS2PEPF00003440.namprd02.prod.outlook.com (2603:10b6:610:20:cafe::73) by CH2PR07CA0012.outlook.office365.com (2603:10b6:610:20::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36 via Frontend Transport; Tue, 6 Feb 2024 14:40: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 DS2PEPF00003440.mail.protection.outlook.com (10.167.18.43) 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: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; Tue, 6 Feb 2024 06:40:05 -0800 Received: from rnnvmail205.nvidia.com (10.129.68.10) 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, 6 Feb 2024 06:40:04 -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:40:02 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v1 3/7] common/mlx5: add inner PRM fields Date: Tue, 6 Feb 2024 16:39:46 +0200 Message-ID: <20240206143950.1499532-4-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: DS2PEPF00003440:EE_|PH0PR12MB7079:EE_ X-MS-Office365-Filtering-Correlation-Id: 1d210967-b207-4b10-b9de-08dc27218af4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bt7tQKoyx6oMV/U4uOftc/heV6SV64WO2Bq/vlplY3UxYTlNIDzILeR5zipgXCuKQFb2mziYVsYVfQFlfg4SMQc0n4UGEalcI441ZUQvSCEzPaJWhtg/0+DqhTwXZEk92tvOQ8dPdKYCnh1igKeioshQBgLEq9fxmXhgPGPVIuOHTqBQghl2BvtVYgyG8bwkfSA7vFVZUMnA4j7avM5NhsxWJ812JOphDrvtQjPMyoGPJ+WbN7olxkvA86ID96OgtcLepLrII4oTyHzqKdbzEI0NBEbpaT65DQtZxoA5DZbk280JzsB9eUaHnGNG/4GTks5eNfpAmNvhaUIikXENDzDI4891uJnZPZ6Vcq7JaOc5EbBj5E2TQ3BBxRGp4pctD4saAotN76LYZKB0rw44CaRKUAe4sY02PTHxHBm0aT+r5QmNPTpfFK9oj5iUqFgNvB9WpM0cV7oGbm9LWUjDX2gNPrkrjF/mctUHCHQ4nu9lbVIijFEWoOJQHN2WLGrxhfTS80Sbm1andJNX1QJCjS1RcYcpVz2wXlOLLbPzsXNkW0RVIFv4SnKvvjfXXAie7ZqX6fxUVq5vTpUTqM5swSqNAGyQrDV8NoPQb15dNElRu0VncfgKMtVmw4XyUHRyWC41nodYOjZtm7QDQMX+fAhOqSTkoNFmFpR2sKQFejlht4zbiU75BkjYBxk27lQPdHD8s1l+8u7hYHiT7+enWrTiLnjkkL/70tNPypNv+Zeg6bVR5BR/auIm5YiHCR6B 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)(376002)(136003)(346002)(39860400002)(396003)(230922051799003)(82310400011)(186009)(64100799003)(1800799012)(451199024)(36840700001)(40470700004)(46966006)(55016003)(41300700001)(40460700003)(40480700001)(478600001)(86362001)(36756003)(1076003)(70206006)(2616005)(356005)(7636003)(82740400003)(336012)(107886003)(47076005)(83380400001)(26005)(6286002)(2906002)(5660300002)(8676002)(36860700001)(6666004)(54906003)(316002)(4326008)(70586007)(426003)(8936002)(7696005)(6916009); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2024 14:40:19.6903 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1d210967-b207-4b10-b9de-08dc27218af4 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: DS2PEPF00003440.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7079 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 adds inner values into PRM modify field list for each existing outer field. Signed-off-by: Michael Baum --- drivers/common/mlx5/mlx5_prm.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index a13b5790b0..7ac43f42b8 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -829,14 +829,17 @@ enum mlx5_modification_field { MLX5_MODI_OUT_TCP_SEQ_NUM, MLX5_MODI_IN_TCP_SEQ_NUM, MLX5_MODI_OUT_TCP_ACK_NUM, - MLX5_MODI_IN_TCP_ACK_NUM = 0x5C, + MLX5_MODI_IN_TCP_ACK_NUM, MLX5_MODI_OUT_ESP_SPI = 0x5E, + MLX5_MODI_IN_ESP_SPI, MLX5_MODI_GTP_TEID = 0x6E, MLX5_MODI_OUT_IP_ECN = 0x73, - MLX5_MODI_TUNNEL_HDR_DW_1 = 0x75, + MLX5_MODI_IN_IP_ECN, + MLX5_MODI_TUNNEL_HDR_DW_1, MLX5_MODI_GTPU_FIRST_EXT_DW_0, MLX5_MODI_HASH_RESULT = 0x81, MLX5_MODI_OUT_ESP_SEQ_NUM, + MLX5_MODI_IN_ESP_SEQ_NUM, MLX5_MODI_IN_MPLS_LABEL_0 = 0x8a, MLX5_MODI_IN_MPLS_LABEL_1, MLX5_MODI_IN_MPLS_LABEL_2, @@ -855,7 +858,12 @@ enum mlx5_modification_field { MLX5_MODI_OUT_IPV6_PAYLOAD_LEN, MLX5_MODI_OUT_IPV4_IHL, MLX5_MODI_OUT_TCP_DATA_OFFSET, - MLX5_MODI_OUT_IPSEC_NEXT_HDR = 0x126, + MLX5_MODI_IN_IPV6_TRAFFIC_CLASS, + MLX5_MODI_IN_IPV4_TOTAL_LEN, + MLX5_MODI_IN_IPV6_PAYLOAD_LEN, + MLX5_MODI_IN_IPV4_IHL, + MLX5_MODI_IN_TCP_DATA_OFFSET, + MLX5_MODI_OUT_IPSEC_NEXT_HDR, MLX5_MODI_INVALID = INT_MAX, }; -- 2.25.1