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 D4397A0C57; Mon, 1 Nov 2021 10:15:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B402410FD; Mon, 1 Nov 2021 10:15:50 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2075.outbound.protection.outlook.com [40.107.237.75]) by mails.dpdk.org (Postfix) with ESMTP id 6F5B640DF6; Mon, 1 Nov 2021 10:15:48 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b/E2xS7YH6CUyB3sbpvAtSZZp8fbQzGrfGmCjXI4yrvaPyiPAgW1niWoo0uc8JF/twp8sSms7v2xXmm5XEFLX1LWNKMiAAS69yYvAiXEHCpD9eyFXI1rS6UV4QuaYM9+XZcQY0k19h3hsMg5TKjyytYmXUcfBHQR/++ClfVMeBxRH+XC+aX+bAeAoElvjj7G2/C9htKdDjpF2W8YuZ+A+3To6YNMjWOaDvkntoPS7ZvsDQbiO1pTz97qtbKmRiqK7q8/SbxZnEDAzIhXJlIwC+xvQhfIDoFQoyZE2ApgEEUtzjn7lr13D11SjVowWXV/Oys8y0+dw3hulnqPBpSNdw== 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=nK8y00iapCpU8k8loVs7bCTHja6U7ZTjJSC9V2gknTtQdpTKGAkiv6dJ/tyoD547ogYQVOMFvWSNeFk1AqjfYeEG+PC2u1laGuAS42OeNykxd9I1oOzPOV6qd8MwmP2W/jKZShcXLcPMYkpLEhNMIDatVfck+80gzhe6kZyE6NO8p3vrx1oRXFgF3p5CGeAPWQqS74Kv8O3Ls+oZgQzxdtiwC/HomkWc7Ubx4MA31OgYa1rKBNQUcH9/UjEhmqqT08P09XOSbM/IYFVUCt7hISsl2QYH7CESEbqcd7Vx1eghVoLByWT1ZXBT6vzUYcxPhp0ZciJqAY4yLX2MHE74lg== 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=PdhOwHuaOcdylTR2UVnEn1VwkQrr/91AUgJY43/lXWTjJ4mhby0x/jmWjvQ3fRybWKYLjE4ruKVHhjpKvOXBhN3cXUZlQ41H3tH2Kkt3rUAwB5P52aoaf/IYfGOPUCsT9L/jZP6i6n3eelsrg/W2ZQDw1Qg/6hcjK9yqDMOBIjjmGTLeFvN9a9Xeh5/9kY5jfbQpZzG/cM7HJ9FHQGF6WItmH1RrLENJ05PNqSqMNbDkZFYPEYYfehNyMiocftV/szC2nABDhxyA3kAf9sJESYrSdpI3DZzcw6DueZAL6eeHUNOVspdmnymcuuwtcTnV//7+gpd6HdCCmgzZtQgFLg== Received: from BN9PR03CA0287.namprd03.prod.outlook.com (2603:10b6:408:f5::22) by SN6PR12MB2670.namprd12.prod.outlook.com (2603:10b6:805:6b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.20; Mon, 1 Nov 2021 09:15:46 +0000 Received: from BN8NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f5:cafe::f5) by BN9PR03CA0287.outlook.office365.com (2603:10b6:408:f5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14 via Frontend Transport; Mon, 1 Nov 2021 09:15:46 +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 BN8NAM11FT029.mail.protection.outlook.com (10.13.177.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4649.14 via Frontend Transport; Mon, 1 Nov 2021 09:15:45 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 1 Nov 2021 09:15:34 +0000 From: Gregory Etelson To: , , CC: , , Netanel Gonen , Bing Zhao Date: Mon, 1 Nov 2021 11:15:08 +0200 Message-ID: <20211101091514.3891-4-getelson@nvidia.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211101091514.3891-1-getelson@nvidia.com> References: <20211101091514.3891-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98df20f1-1f6b-4753-560e-08d99d18304e X-MS-TrafficTypeDiagnostic: SN6PR12MB2670: 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: W1RZfLp/KvSKH5hctFbppNIxvMlJjFqIK7TEiCrPDHSSMwH1ZKEd2TbmL8YSzoFrP01NwRQM8RfiizWZm5OLoRjD2sIJLNmYjcTl7HCk5VRTFEKMPzyJSB2BthoJJvzJrwV58LPNyLCwKNpkFm62wUR6aHvxR/W1dsObIlxzORhjkb0rNXFkufbbST9Ad+9pZuWAAia8Ww1j4S76fZ41vciQkQRyvoozPoljpqclMwIoCSqpvNLTV3yoVpACWs96J7K/64QUy3P9ztHwQCsK2JmQ5VU7CVg22peV3o+/N6Abx7AvXhZVyXcHYt0Cfhf2n/IfgEbbSCSqKZn3xQm9kDZxfQXzPY072cACZklpyuE27F40QV+GZZupKmYl2KqSAiookwyMerft+GzzvpE/JSmiywCB1XKt93cdFdPckjwajZu25W4Yiv8ngpt7/tunbQ3rSqbCABdShnuGRYMnqwkujCTllQiPqdNZLbQfnAdLqkyFEte4mnr19giTfJ/1DuUnjr/hFnkt7D6aXjqXkc7CjXGLNqdcKicwaPdaKTA8moOR/E1u9v2WxN8mLIi/WHck4cKKi2f4t6ywDeHZ+TEl0tgUU3gyMowUOQSq76JcONxIeJQpoMkdX3tIB5ngYGulF2Kdnmuv94DBc46Ypf9M/UUOT4cJvqlkYW2ErEUDFdlXtv1xnC+EQmhwlAutI+I24dGGZzyMsFI16zVfXA== 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)(36840700001)(46966006)(83380400001)(7696005)(47076005)(450100002)(6636002)(508600001)(426003)(4326008)(54906003)(36756003)(110136005)(70586007)(2616005)(86362001)(55016002)(82310400003)(316002)(70206006)(1076003)(36906005)(5660300002)(6666004)(8936002)(356005)(16526019)(8676002)(7636003)(336012)(2906002)(36860700001)(26005)(6286002)(107886003)(186003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2021 09:15:45.9275 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98df20f1-1f6b-4753-560e-08d99d18304e 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: BN8NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2670 Subject: [dpdk-dev] [PATCH 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