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 9108643A3A; Tue, 6 Feb 2024 15:40:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 33536402B5; Tue, 6 Feb 2024 15:40:17 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2041.outbound.protection.outlook.com [40.107.223.41]) by mails.dpdk.org (Postfix) with ESMTP id 05C6A4026B for ; Tue, 6 Feb 2024 15:40:14 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JFbeOkElB7S3EPoIkgWoTGVlg6Pm4z8ed7pfe9q1D17LV7myxdgSJg/F+ePcvO8JLCMnmb3BJ3QzA0DW05ZvO1P5wTEC+efdvzoZcQ1G61iHxhdPSBV9+OWLAMY8KpJDuo3TdQ3QUYuo2Lfd+QG/teyyzeJDHLadi7+pSKiWcvNpB6uMGIjvd9XgmRtEnQ25MKfzvt/C69HnpAHmAeVSb2MGa5LzSAjcFbyA5rcbkzdFVzbtc9muvmcu7L4aMX7gzmrSoemTWtp0SuolDU70DTCBMBiSMXmb8vmniSgL6P2WpKYzB4VwGwH8tqCtb/lJcj/eF6n/hnqLuNNlViIgIQ== 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=3OaqGoAOIOMpKakRDGQqLQjvAoe9bMkPy7C6xBXXAOo=; b=VPoW/seqiNpaIC4CSbBL6R1BTsEyTnO6n3uswfWb/LbiYpMO5+5NQimaqNe8IJwBlnlJR9verItcxODmpgqstA9xtII3pEJw5m9tRlYy8TncwIHvwoee+94AoJzugBJJfLS8pxmnS7/3VjMsEJ7BIxdgJcUIqEvph91uq7rVefnLO2mO7Cst9RdcWq97uBuV+Ba/bzdewUitcLzc85XrQOBVZJpg6aShMj7lKXr3EOlA3Ktdn7jrpH70/ufOz6tDo/kwlrtNCMbhE4rRNVHXFJqKAEGvlSCcdsbqFv+QZQiEjX/+xlbR77nA71ov1Epq7YFAvGhxekGMOWLOSPIpTg== 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=3OaqGoAOIOMpKakRDGQqLQjvAoe9bMkPy7C6xBXXAOo=; b=CLSNh2hLba2Uu9D8wXOqadnDUdBbsl5gkQ51xnnHHfHfHPhx8gBREyPlaq+7vzpwrzOEDUUfrFznEAEess3Uk6PUm1qiYuoYj0HBoWxVV2wdLTnuYUXykBl8rogJyl1MrRkzGeEdl5IYHM6Ryeq4tBue6kYdonIZcmL+wJCOEDYoJaxCTP5nwxGHViTR0zb4toAz4t62ddSqr79sXd/gmfPkk8l9nXLKmtnneD2lyyHAmO0OaNGWaR5uMb8kVoyZjPeJtbFAq68Re6YJ3W/G8Oc/inKc+WbWSmWq9CgGrta+vaM6VsdtrKnYy223J0atYFAORK144xhEbQtWZ77J3g== Received: from SJ0PR03CA0169.namprd03.prod.outlook.com (2603:10b6:a03:338::24) by PH7PR12MB5711.namprd12.prod.outlook.com (2603:10b6:510:1e2::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:11 +0000 Received: from SJ1PEPF00001CE6.namprd03.prod.outlook.com (2603:10b6:a03:338:cafe::54) by SJ0PR03CA0169.outlook.office365.com (2603:10b6:a03:338::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; Tue, 6 Feb 2024 14:40:11 +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 SJ1PEPF00001CE6.mail.protection.outlook.com (10.167.242.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.16 via Frontend Transport; Tue, 6 Feb 2024 14:40:11 +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; Tue, 6 Feb 2024 06:40:03 -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:02 -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:00 -0800 From: Michael Baum To: CC: Matan Azrad , Dariusz Sosnowski , Raslan Darawsheh , Viacheslav Ovsiienko , Ori Kam , Suanming Mou Subject: [PATCH v1 2/7] common/mlx5: reorder modification field PRM list Date: Tue, 6 Feb 2024 16:39:45 +0200 Message-ID: <20240206143950.1499532-3-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: SJ1PEPF00001CE6:EE_|PH7PR12MB5711:EE_ X-MS-Office365-Filtering-Correlation-Id: 99da4768-8904-456e-50a8-08dc272185e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vEYpRyQd7wZeEHoHvJ3oYee8dVrLcQrIH9KSmmYuiDVQ/RakWxmKC/pEYx7RajlDWPmy8BbWkUWUU5O1IHdvFWz3Bn7zS6v/x6RpssF/yozkoiOkWJWNW3FJGSNphl7BNKAafCMwzet9WOVYCZS4uKXPU8LsL9sqMCx4CKylfyTBGXegXR2Khr+LHPjMfDmiYnQB306vE0hEXnXbvCfRVQrsV8s9mNr6TI72G4ptQRIGlcraJvH00cdt6AUHimpwDBQH1se1dCK795XlipoUHYXxpb3OpBjX5lT6MivWoGtuy3f8iBi0ee4jXNt7CnbcgVaELGL1KPoI+lo7k5H6q4lUCmfuBgsHynq6Jwsfxjc1d6FG22Sfo9Jpd+8otiJqFPAotbgcZHxhQhGSVJn5cLs3USnNMB3+ThRcXjbhlrTLyMoFlWUGxD2j6eKS/apGc52KWIQDktGor3/XvIa50mcivU6DvHRBe+k9f3D3Tor8xyH6IyD/tYSgf0HdFStqFAGB2t8gpU/45ulCBxxYmEYiK6IgO2SbbIlsEbH6X0CD1YJCGXuYiUn5glYyomw1n8SZqbCrGmd21+MsdM90drLxij9Z8bBPgUOMTNmpDTym70VhFz83yk0Paoj/Ukcr5BPkPMXBv9EiICLVGhhQghq33osNxJHBqsRpj6yxUoO3CR2JI8dzLlj8IfKARgDnmSI9z3jp8WBrUmm+GgVCYwNmGg0WNEP02uegasjJViBsAKgzZRXVLozJ/ZRSbkg3 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)(346002)(136003)(39860400002)(396003)(376002)(230922051799003)(82310400011)(451199024)(186009)(64100799003)(1800799012)(46966006)(40470700004)(36840700001)(1076003)(2906002)(316002)(8936002)(4326008)(70206006)(8676002)(70586007)(5660300002)(54906003)(6916009)(86362001)(36756003)(41300700001)(36860700001)(356005)(7696005)(7636003)(26005)(83380400001)(6286002)(426003)(82740400003)(6666004)(336012)(478600001)(47076005)(107886003)(40460700003)(40480700001)(2616005)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2024 14:40:11.2929 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 99da4768-8904-456e-50a8-08dc272185e0 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: SJ1PEPF00001CE6.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5711 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 Reorder modification field PRM list according to values from lowest to highest. This patch also removes value specification from all fields which their value is one more than previous one. Signed-off-by: Michael Baum --- drivers/common/mlx5/mlx5_prm.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index 1f04a35683..a13b5790b0 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -816,6 +816,7 @@ enum mlx5_modification_field { MLX5_MODI_OUT_IPV6_HOPLIMIT, MLX5_MODI_IN_IPV6_HOPLIMIT, MLX5_MODI_META_DATA_REG_A, + MLX5_MODI_OUT_IP_PROTOCOL, MLX5_MODI_META_DATA_REG_B = 0x50, MLX5_MODI_META_REG_C_0, MLX5_MODI_META_REG_C_1, @@ -829,32 +830,31 @@ enum mlx5_modification_field { MLX5_MODI_IN_TCP_SEQ_NUM, MLX5_MODI_OUT_TCP_ACK_NUM, MLX5_MODI_IN_TCP_ACK_NUM = 0x5C, + MLX5_MODI_OUT_ESP_SPI = 0x5E, MLX5_MODI_GTP_TEID = 0x6E, MLX5_MODI_OUT_IP_ECN = 0x73, MLX5_MODI_TUNNEL_HDR_DW_1 = 0x75, - MLX5_MODI_GTPU_FIRST_EXT_DW_0 = 0x76, + MLX5_MODI_GTPU_FIRST_EXT_DW_0, MLX5_MODI_HASH_RESULT = 0x81, + MLX5_MODI_OUT_ESP_SEQ_NUM, MLX5_MODI_IN_MPLS_LABEL_0 = 0x8a, MLX5_MODI_IN_MPLS_LABEL_1, MLX5_MODI_IN_MPLS_LABEL_2, MLX5_MODI_IN_MPLS_LABEL_3, MLX5_MODI_IN_MPLS_LABEL_4, - MLX5_MODI_OUT_IP_PROTOCOL = 0x4A, - MLX5_MODI_META_REG_C_8 = 0x8F, - MLX5_MODI_META_REG_C_9 = 0x90, - MLX5_MODI_META_REG_C_10 = 0x91, - MLX5_MODI_META_REG_C_11 = 0x92, - MLX5_MODI_META_REG_C_12 = 0x93, - MLX5_MODI_META_REG_C_13 = 0x94, - MLX5_MODI_META_REG_C_14 = 0x95, - MLX5_MODI_META_REG_C_15 = 0x96, + MLX5_MODI_META_REG_C_8, + MLX5_MODI_META_REG_C_9, + MLX5_MODI_META_REG_C_10, + MLX5_MODI_META_REG_C_11, + MLX5_MODI_META_REG_C_12, + MLX5_MODI_META_REG_C_13, + MLX5_MODI_META_REG_C_14, + MLX5_MODI_META_REG_C_15, MLX5_MODI_OUT_IPV6_TRAFFIC_CLASS = 0x11C, - MLX5_MODI_OUT_IPV4_TOTAL_LEN = 0x11D, - MLX5_MODI_OUT_IPV6_PAYLOAD_LEN = 0x11E, - MLX5_MODI_OUT_IPV4_IHL = 0x11F, - MLX5_MODI_OUT_TCP_DATA_OFFSET = 0x120, - MLX5_MODI_OUT_ESP_SPI = 0x5E, - MLX5_MODI_OUT_ESP_SEQ_NUM = 0x82, + MLX5_MODI_OUT_IPV4_TOTAL_LEN, + 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_INVALID = INT_MAX, }; -- 2.25.1