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 8BB96A0C4E; Tue, 2 Nov 2021 09:54:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35C744112E; Tue, 2 Nov 2021 09:54:11 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2078.outbound.protection.outlook.com [40.107.220.78]) by mails.dpdk.org (Postfix) with ESMTP id C38DD4111B; Tue, 2 Nov 2021 09:54:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H/7OiIV8y1HXtPvkGRMnQPthdFvZrmGeE137DBo37ppRvQ9lhDHDtj4//B50MFR2Jns7vrYcDgzZy9vDcwvPJj5iKfsPIluSDter2lz9BPdLwMWRAqJxIEJPt3V5OrlGoUR2kUb1DQgrgokJxVVepA5C5zGyb2pkZ+9OW+D3WCw/BAvDbFYtd5iuFRp5oKEA22CzVfxvbyMX8HMrwDlXmwg9Gg2Sx8zjGN95jA03Wt+zYP1IGqEqzy9JISMxOLMApxfyerFXfYiPel/08auXayPcALfsc9/eXoKwj0EBUqsgXSk00yXl1d/peI+P+rsb5+zWaNilGwMqjBBaHjVSYQ== 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=Z9BL0zrH5km8eTLjRc12JLAb7Sorctti/3nZPGPZZuU=; b=MLMUaEpdsy6rl8fv5slO1Vh8fMNkntWKPFvrnOOzrAuNkyEvPHfQyT7Ti6MLnYGOhbGbGU/9rh94z7RGeqI4AVIvisu+e+qeuc4E0vFhQGFsUaa/MWIsaZEbUuAVmnZUzxFHGWH33aa16dExDMGILOQkx+Eplx4RTm9gTZsnoSaQ48xl4sp3jRHp45VM7HkoDRXdzQUTy2AZlEQZAD4AzzrZY0EJWaAYvIVXxxpd328RkyoQPKQOXgc8P8TppJXKlTjkmNzDH4r7ph/2i0rA9nYUKGcpiQyhNY1JkfdFgMxexnU4bxzRnsA6hkBTB8j6GVZm6Ti8uBK5sz14ISMbYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none 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=Z9BL0zrH5km8eTLjRc12JLAb7Sorctti/3nZPGPZZuU=; b=uTdWAzswNVHiqVS0cLzyW/aGURK6bnfTTURoKozgXnSIuuhles0/dghro+pwieSO1aeOdncPfbdAIk6HT+NXbzG+wAwZmCWTz+R/yJT0I5Tc4+EjIJhw3e5OEicxZnrmXBCFZeO+2k09uYrq1v+ROLuQfbQgdD/DmxL6e3dINJ5iwO+LCqRlJZEDjQqiWgQM7NqeCiIJXzHjLVDV9m3c0sjhpwLryAuZtJJzRwM08XIgVB12r+6Z0i+20gpiO98A4SuOP1A5jEQuPU2EuLV1ByvwjU85wLVvlLp0aYIjh74/6HDX8DgtOzIXLnI5SX8Bf76gL2LviV16i4myv2dUxQ== Received: from DM5PR13CA0053.namprd13.prod.outlook.com (2603:10b6:3:117::15) by MN2PR12MB3360.namprd12.prod.outlook.com (2603:10b6:208:c7::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Tue, 2 Nov 2021 08:54:07 +0000 Received: from DM6NAM11FT050.eop-nam11.prod.protection.outlook.com (2603:10b6:3:117:cafe::d8) by DM5PR13CA0053.outlook.office365.com (2603:10b6:3:117::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.4 via Frontend Transport; Tue, 2 Nov 2021 08:54:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT050.mail.protection.outlook.com (10.13.173.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4649.14 via Frontend Transport; Tue, 2 Nov 2021 08:54:07 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 2 Nov 2021 08:54:04 +0000 From: Gregory Etelson To: , , CC: , , Netanel Gonen , Bing Zhao Date: Tue, 2 Nov 2021 10:53:40 +0200 Message-ID: <20211102085347.20568-4-getelson@nvidia.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211102085347.20568-1-getelson@nvidia.com> References: <20211101091514.3891-1-getelson@nvidia.com> <20211102085347.20568-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 11ffd4df-be9a-46cc-974b-08d99dde5467 X-MS-TrafficTypeDiagnostic: MN2PR12MB3360: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:983; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sloHJ9oy2u5v4jGyiUu50rtpZDI0DGjj7DGDopnOwskMslLgF/YolpZysyQbeKY0rXGdOX1/YpsqLzTuBqPIpZy8V7HOXKhGj+9kitTV2JbBVTotK1UvDEVvPJbsguvLB9I1c/HPZBjsBmhK+NRWylbFlqoVOo0VXUz7V6pem7vdcY77+f/MYalOdro2UeIcPvlglgmyUsv2MI0y4ylAUUwqz5VXI12hDV3FYqa9QUHflZmE4a0++X6Ws6EF7bpLhh1bjZ8dCknsHM7W7Gmc955TQJ+LgrAMsHu2XCHqoWlZukgpYzmDZqnsnwPWR+oYQPG0+ElW+rxYqVt9GW/dD1hohQQkx9BQPdfHuD3rVTLDx7WH++865sc8alKRcaONBwqBZtEDfYtr/h6g1KwjRghi3lhUr376IxLra6IfO+4U4G+RrPG5fj4yn8JkHKrgT152Zwe+1dQNTtxODZCZCbSxFzdRAHddvRiNmGRZ25Cme1li7o69ucf1uB8Hkj+8A+NSWngHtd+SGzRb9siwLomij4DtWtPDY7Z7PyZrlnIrSKcx+Ti0So0GqEvlHnJPtritOneal7gehXF1MOCsmlIHOrI83UUQyfNvRACeEU0gx8x8YO07Otv11RhBta+zG+Qt7LgIc5eGNpsmdMOK2dgqFHgPgWGBt2q85zfO5CSwPDfSWcdNncwh7Eec8xzz0l4XZpZyUdXr6tislrGrpA== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(186003)(55016002)(83380400001)(508600001)(2906002)(16526019)(1076003)(54906003)(6666004)(8676002)(36756003)(8936002)(7696005)(6636002)(26005)(336012)(7636003)(86362001)(6286002)(4326008)(70206006)(426003)(316002)(2616005)(450100002)(110136005)(82310400003)(107886003)(36860700001)(5660300002)(47076005)(70586007)(356005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2021 08:54:07.2892 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 11ffd4df-be9a-46cc-974b-08d99dde5467 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT050.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3360 Subject: [dpdk-dev] [PATCH v2 3/9] common/mlx5: fix flex parser DevX creation routine 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 Sender: "dev" Add missing modify_field_select, next_header_field_size field values setting. Fixes: 38119ebe01d6 ("common/mlx5: add DevX command for flex parsers") Cc: stable@dpdk.org Signed-off-by: Gregory Etelson Reviewed-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_devx_cmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index 28e577a37e..12c114a91b 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -620,10 +620,9 @@ mlx5_devx_cmd_query_parse_samples(struct mlx5_devx_obj *flex_obj, return ret; } - struct mlx5_devx_obj * mlx5_devx_cmd_create_flex_parser(void *ctx, - struct mlx5_devx_graph_node_attr *data) + struct mlx5_devx_graph_node_attr *data) { uint32_t in[MLX5_ST_SZ_DW(create_flex_parser_in)] = {0}; uint32_t out[MLX5_ST_SZ_DW(general_obj_out_cmd_hdr)] = {0}; @@ -647,12 +646,18 @@ mlx5_devx_cmd_create_flex_parser(void *ctx, MLX5_GENERAL_OBJ_TYPE_FLEX_PARSE_GRAPH); MLX5_SET(parse_graph_flex, flex, header_length_mode, data->header_length_mode); + MLX5_SET64(parse_graph_flex, flex, modify_field_select, + data->modify_field_select); MLX5_SET(parse_graph_flex, flex, header_length_base_value, data->header_length_base_value); MLX5_SET(parse_graph_flex, flex, header_length_field_offset, data->header_length_field_offset); MLX5_SET(parse_graph_flex, flex, header_length_field_shift, data->header_length_field_shift); + MLX5_SET(parse_graph_flex, flex, next_header_field_offset, + data->next_header_field_offset); + MLX5_SET(parse_graph_flex, flex, next_header_field_size, + data->next_header_field_size); MLX5_SET(parse_graph_flex, flex, header_length_field_mask, data->header_length_field_mask); for (i = 0; i < MLX5_GRAPH_NODE_SAMPLE_NUM; i++) { -- 2.33.1