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 4E91F437A9; Wed, 27 Dec 2023 10:08:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3E3F40649; Wed, 27 Dec 2023 10:08:21 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2054.outbound.protection.outlook.com [40.107.223.54]) by mails.dpdk.org (Postfix) with ESMTP id EB0AE40649 for ; Wed, 27 Dec 2023 10:08:19 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YGj4hXAbPzhARtojzrqeUs+x6kUJ0Wn76Cwc37egVkanWF5r70Krds3RQutz5CPpFb5viUhUe3V3TX+8dWoDm8jwZQrQ9e7IFYQjfPsZLVCHWhFdHlZvpVsEetfQsKtc2PPGRGmFniDZew/MmZOCcyc2YBu3kI6ySag6RZdXLJfi1UDOjwZehWKe+vh4kp63diq4KETXrp1Mjm3FPmQ50OvXValq4785HmD0f0Llw7xDObi+jy3UaxN4ZQcUh8FOcGPkwABB3UCMqDsWWY78cpz99U3Tfl93RpUaKeCdFrnBeHkm0coFg23YIEkiMaiH02EGLK6RONJt7GCmLJm6bw== 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=Xwzg1p12vMF+EvJvyVdMsl1DanOCJCY7+GHnANfizsE=; b=ZJPYftx8SOMo3qrX/fI2Kdar59L9j5pL/7EuozHUkah/1yyW8nyi0QmpiH56woKixdYOC414/TdFzDchBrTTeH4LTqM07tFKAV1j/5BPMOfPCzbZ/05iMicdQbfzwELPOu9Hzad/ZT+myh+gDmsoEJ3ecyvqJfRyd681AKzeKZw6MDYjJWviX+k/Y98eQ0YNOzLNtkcmwNXztQHzzCbt7i3wm3Ru8sQblgnul+aI8DY8AVLQtzLhVDD+K0z6pehGry1Lq1bvNhMvTGTBF7HnAw2MTNn65qyN6oxkdLXEhrtlrch50RAK6PQHUDaCfNTW4yNswqgdrVWxYBFsIZTs+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com 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=Xwzg1p12vMF+EvJvyVdMsl1DanOCJCY7+GHnANfizsE=; b=nMwtv7TT8RnxMUQ4RYZsAXHE1RjdpedNvxGtY1tHIaoJp+ti1CKGF48uIQa65U7dhYvYSWApnrlBpnDO0wsnSz8w9WU6bzIFtiK81m+O2nM3XpiLbNTmaWOD/WIJdmK7srz6MzPes39HDBOwiKI57ZHKyE1ltbbtRhX8cPj+jfEn7ubQLCzfMo9KdWuX526WyEoeyv+GSB4YCvJeIpOla9K1xrOZFTnAMCds6KXNc4tdel1Cl/6RsQvtoj7prekO7TskDDzXBkVnrhcGrWFeJk+2mtgyMBZdV+0Jd1qdN2KxlH2Uk0IcoVLLb1def2uAEZIyztCE5zt0oWxCRkiJHA== Received: from CY8PR12CA0038.namprd12.prod.outlook.com (2603:10b6:930:49::26) by CO6PR12MB5489.namprd12.prod.outlook.com (2603:10b6:303:139::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.18; Wed, 27 Dec 2023 09:08:17 +0000 Received: from CY4PEPF0000EE34.namprd05.prod.outlook.com (2603:10b6:930:49:cafe::36) by CY8PR12CA0038.outlook.office365.com (2603:10b6:930:49::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.28 via Frontend Transport; Wed, 27 Dec 2023 09:08:17 +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 CY4PEPF0000EE34.mail.protection.outlook.com (10.167.242.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.14 via Frontend Transport; Wed, 27 Dec 2023 09:08:17 +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; Wed, 27 Dec 2023 01:08:06 -0800 Received: from nvidia.com (10.126.230.35) 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.986.41; Wed, 27 Dec 2023 01:08:03 -0800 From: Bing Zhao To: , , , , , , , , , , , Subject: [PATCH 4/8] common/mlx5: add new modify field defininations Date: Wed, 27 Dec 2023 11:07:27 +0200 Message-ID: <20231227090731.2569427-5-bingz@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231227090731.2569427-1-bingz@nvidia.com> References: <20231227090731.2569427-1-bingz@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE34:EE_|CO6PR12MB5489:EE_ X-MS-Office365-Filtering-Correlation-Id: b1ff0c60-facd-4de4-7347-08dc06bb5d34 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Kx7jQpkdda3FbpxVSOIrKEEJ4mYSngNawXNrzTFk78ctTMakZTO9w86hy7NNxzXosi1oaJdfQvP7/cS0RD1GX2YvbI/9ScWFtbqdHSrXUC3hY785d03dNs9m0ooLsAImCTMKT/B1mWXFARAKCc7ucZcqt/5IGbop5yziRGck5ZrU2Z9xnb2b1A4pxkTPSM9BU5BQB5mCjNZhBVHizHAaywVb7d7DrFJOj8Pdr9DyO3yPcTrm1qDmKez3JHy9h/gRj+lHJLcX8KxB5mlsqoQIBo6IO2SDUBobLqzY3kAmdHx3GKGL6Q0m8eoA8w2cRnJyYDPocBmS5DtN3gh80vUoTXATJVkshL/3QMPeeA+xwj5fl6sMSc+NYXg/NJGYTWtjXPmy1U0mYP8q0kCgyHvktMpMkqeOz3ch5doP6XI/NCnCVO5d+AY40PWQ31UgrKbrU5Fa0d9s23UiGu3t9EdnRAUN1R+MeHCXSXKDaM+mkIwe77R+im35tHrq7geDVYmPvLnAMA/MTtlbne9JyMJGs71YdCG5p3lw8rqp/l8KiiKnoIVcqtrOWCxM3oibX3CDnWX+Z1ONps0j6MnBrRAynPpvaAH0H+i0o+Br6qHEEIwbeQGoaA8UbG67OlTNBGjkpCEmstDRY4wuRdqnvjoVTs8PLbW7gXpVF4Zcykg7BX+PVcr698gdQMe9FJHGKPzxIBTNKu4elEbUUz27yYP9nBZ8AnQCLFDiP9CpTw28bb/EGQUKyZtJ4vpH4HIvexErkNvEoVtzSQFToldiQDZxTQ== 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)(396003)(346002)(376002)(136003)(39860400002)(230922051799003)(82310400011)(1800799012)(64100799003)(186009)(451199024)(40470700004)(46966006)(36840700001)(82740400003)(316002)(70586007)(70206006)(110136005)(6636002)(47076005)(356005)(7636003)(6286002)(16526019)(7696005)(6666004)(2616005)(426003)(336012)(26005)(1076003)(8936002)(5660300002)(8676002)(55016003)(478600001)(40460700003)(36756003)(2906002)(40480700001)(86362001)(921011)(36860700001)(41300700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2023 09:08:17.0731 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b1ff0c60-facd-4de4-7347-08dc06bb5d34 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: CY4PEPF0000EE34.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5489 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 commit adds TCP data offset, IPv4 total length, IPv4 IHL, IPv6 payload length in modify field operation. Also redefine the out protocol(next header) for both IPv4 and IPv6. Signed-off-by: Bing Zhao --- drivers/common/mlx5/mlx5_prm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index 9e22dce6da..2f009f81ea 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -839,6 +839,7 @@ enum mlx5_modification_field { 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_OUT_IPV6_NEXT_HDR = 0x4A, MLX5_MODI_META_REG_C_8 = 0x8F, MLX5_MODI_META_REG_C_9 = 0x90, @@ -848,6 +849,10 @@ enum mlx5_modification_field { MLX5_MODI_META_REG_C_13 = 0x94, MLX5_MODI_META_REG_C_14 = 0x95, MLX5_MODI_META_REG_C_15 = 0x96, + 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_INVALID = INT_MAX, }; -- 2.25.1