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 8957143AA0; Wed, 7 Feb 2024 16:56:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 775AA42DFC; Wed, 7 Feb 2024 16:56:03 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2061.outbound.protection.outlook.com [40.107.223.61]) by mails.dpdk.org (Postfix) with ESMTP id 7919042DFA for ; Wed, 7 Feb 2024 16:56:02 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CNlcYA/T8FGtrdy8M5I8pis45Wkr18DhIUcjN1TA5MyqVZ1kLHVhIrt0j+0U6aeDXu3L80IcBGzfW7CeicSwb8iopWp/Be3XwKTHTsyODqZ/VXncm3AV/JRtylcx9lFbgQrTMwGucFLGb9GCgI5RZC9QLtzJyBVtNaMmHkk+G3PIudHwDaOtlsaYq4FrxS2l1LiddWhZwXAPZl8eAXsYbD9SCx7thiXNlj3Xb0Ggr2ep8/xV0gBAgqOx+r3dkozZ+E4EaHZ0kX7sOsPOcqJcy8BX2yISxfaVuU+VmMLxRLYoNfBTjrEWGO+M1eSovaXLtQKgA66/q1H7yi5xdPqOCg== 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=uGwvbCEOCXVHeFrtnkqxz3KPJ+0FKq3nTs7XJ5fg8wM=; b=KEJy3Wd4Pxxbt81vbtdxqkuksZBUcajjP07xpOPoxK4mzJqV94ZmmxwKOa7cBwTLTKXlQNBDwv5HepSs8aH9kItKoWD+BfQ7SREgxkXm/KfMafTNnt/rMON5918Nrl63qYbFKaIuGC/oZNA7tMTxQ8bU2noUoXd+nuDenyCB23XwTfDQa2s70XAdyByE44Cqk1qtrvghhf/faz+6enFpjuuEmHvIAncBoyo5mJ8TE0AyrqraAymw0/GVNFL9RYiCdRmNqsZrHIe3+q1VYtgP8QFkaPeRCL11Ck61jj4Bk7rU0NGORqFQr8muzzoabs2kDaHNuD2DtSiMj9r1n+QGBg== 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=uGwvbCEOCXVHeFrtnkqxz3KPJ+0FKq3nTs7XJ5fg8wM=; b=IF5LbfAuC4OQtlxYSn5fRGw75seCGtPddqgPMf+1VzvsyVVJuHkysaHnkUcTmGCzl6DUmf5GLuxsQ4e1Cf4vsK67ay+BSG63Xxjkz13tlirZlYK1SrwQxi9+6M4Alkbcbgl8+phdUzTQSVjkd+Y5Lp5/JDV5F43/KqyAYLvSySQUI5WBGBu/m9K0YOI/SPrp9wq29ZNXw3gXxom9aFCpBpJhgwbAjUzJD9M5+yTs7TOelUxEFNoCSKBx3IqnlEw/qc9pOSF3jfL3QZnd4IzDv9KHWCIeJ2RHvF56Gurahs5DKtQYDk+gUHHihq/PUud+lH4HZkxJD1bwE5oC8B61/A== Received: from MW2PR16CA0019.namprd16.prod.outlook.com (2603:10b6:907::32) by CO6PR12MB5396.namprd12.prod.outlook.com (2603:10b6:303:139::8) 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:57 +0000 Received: from MWH0EPF000971E3.namprd02.prod.outlook.com (2603:10b6:907:0:cafe::8c) by MW2PR16CA0019.outlook.office365.com (2603:10b6:907::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.38 via Frontend Transport; Wed, 7 Feb 2024 15:55:57 +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 MWH0EPF000971E3.mail.protection.outlook.com (10.167.243.70) 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:57 +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:47 -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:46 -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:44 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v2 3/7] common/mlx5: add inner PRM fields Date: Wed, 7 Feb 2024 17:55:29 +0200 Message-ID: <20240207155533.1582031-4-michaelba@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240207155533.1582031-1-michaelba@nvidia.com> References: <20240206143950.1499532-1-michaelba@nvidia.com> <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: MWH0EPF000971E3:EE_|CO6PR12MB5396:EE_ X-MS-Office365-Filtering-Correlation-Id: 3777d5e0-233d-4a38-5f4b-08dc27f545e6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1jTHLrvElBiashchwKLjWZBPqoYVE0J/rxsSsygSid8/dZBpsxZ6PR63Cu1oXSUd6OI6ZbujUKbHbSijAIHiXRoNzoFFXnZfn8+Dpngc1PjzyWEZaLeF/AXCKKLAGDl0ktbG3zq3vzp2Sfs7DxgVqgH1BppFtCkpgs6931k0Ge3Z34DbyUWvAl02ytJ1UdpeYVsv9aMCOyo2nTbxx5CwnKD3VHrP+Bho47MIrShUMZGH0mGHooVaA5npnE6mikuRzGtYPgf7yJ2WM2JDcLiY7YQ4zEU3Met74RzBDfrnzq+d4x+L1gXdNAkBhcM5jInpmiJlsNGfQ+0Ga+U4pM1oL2komhJ2+ciLmxq270c3OwQEBCe9LruSa1PQCs/eDk9L07YoPzv9zMA0ETdMfeokiHOg/cfhZ8TdD/dk4CzePdzg09RKtpl1boSunJTI2DU8FcQY+ppO9bNaTg4DlxsmkZYeorC17ACCrSDEuQwDif2gyUUKE/elAdxJaJlU7rWIm596gEsd1aVDy4BCojulfxtF4CVdyDt/SjfdPET9qMCAj4eAycT8abLyAsB8Xjzjbr+C0t0Nb/GpLqxiDAZKR8b4a+xRXqdcv7HW+VfGC6jLAqeqmigOUJC+E3l/61I1piBuj5+STrYnd6WFhXbtneJNnpf6ZRh4A+hdM+p35UhWltEtylO7Zy4v/NNKQjfnqm5mDdQSX9HCJNf/ZXbmncMLgbHhWMimwLQWNJ8BEJ/oO+Eims+/NSNq1B28bDo/ 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)(376002)(396003)(136003)(39860400002)(346002)(230922051799003)(82310400011)(1800799012)(64100799003)(186009)(451199024)(40470700004)(36840700001)(46966006)(55016003)(36756003)(40460700003)(40480700001)(107886003)(478600001)(426003)(82740400003)(1076003)(41300700001)(336012)(2616005)(47076005)(6286002)(26005)(356005)(7636003)(83380400001)(2906002)(70586007)(54906003)(86362001)(70206006)(6916009)(8676002)(7696005)(5660300002)(6666004)(316002)(36860700001)(4326008)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2024 15:55:57.2182 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3777d5e0-233d-4a38-5f4b-08dc27f545e6 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: MWH0EPF000971E3.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5396 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 b758557ef9..c6d409833a 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