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 2DF42A0032; Fri, 1 Oct 2021 21:35:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F8A841236; Fri, 1 Oct 2021 21:35:05 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2057.outbound.protection.outlook.com [40.107.244.57]) by mails.dpdk.org (Postfix) with ESMTP id 1523241247; Fri, 1 Oct 2021 21:35:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z8ySeexh2ifRUE60bEQJswzjeOCyqevxdEDc71sq4rpcmws0qThkkUi0cesSRWxHsGlm3EeYlC9oXht1K2s05pQFsqQGIcvyu0DnBTzU/E+psgmI6LB4A64aupVhYCvc+7UQ+sK3CeQuPNIc8olZqDtvuwVJtdSZUY3EClh2Suz2vPa+8w+MYWeMTFuntxL2dOAQfej75u8jSvXHUCPQHWkXljWsBAi/2VdXBg3arneLrOCjiMsQf8WyTwBOMkdKZBX+WX0TiXaKq0NOhtPlKp8St9tvIxiq6f3mSJosGghzoc8juqk8lm0ytakLLSVqy7cmYcz7BFB4m9WHmM0ucw== 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=aziLYMuP1jjKpVZ+6KIAU/+u5eoAspeI5VLFxBEFPWg=; b=OPj4UR1ItwqlH8o859BaucSldmSk5z1Z2Zefu06lUB4siuc9i+zQy7WP2O2wB7OaPfjn9XNYQbybpz9fuUJONcIzkaEwVerwF9ii13VI8tbfh8UueH0bFmvCKPSzyLtSOQEsFLjCq6rCgHALD45kvT4RRA9vuZ3dENPtDN6mZ7/EUmyAPJaUlnkCAEboZbjuN2l8aqNKeklX5fXHVL1UPFBVQwMfWPvu2fTE8ACIS1Clwd36yVDjUw/9ii6etyBuu3kiFtx5g0XWH6VNOozU5dAQVEwZDZ04ujXTKt5tjY7Y2vxZyMkAQ7xkFsbrD1bcrzHFEm8j4Pg4c8Y9nVf3Jg== 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=none 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=aziLYMuP1jjKpVZ+6KIAU/+u5eoAspeI5VLFxBEFPWg=; b=V8/pj7tH/mybkJT/QnAH9Y5lBbO4u87RX/qla8x69ldaL4bkIawH0jMASIUz1qXObbG3iWFDJQECNq1k0p0oJGD5Q7Osk8AHNlomeEmqJJzdnVJbG5YBSpZpVwWqMS3P5VrgTe3bMtiKaOLdrcFcMY8FMkONCDkhdRTV6xMveeaGPWm+tiKeerh4cIvixD3ophBZMO5yHtcQMIQ3WkDjLybvVgOZ1Jj+yTYeF+EpF+LpTtEBl+8bfYgYi5tDepJiDW78xHKkLNm76F7BsEKFUVYwop8ixwICDJLLsoHzhu9PJUmsm0HM6mc/+0gaRc72HhOk2jK3zxQWdccFiXYB9Q== Received: from BN6PR14CA0020.namprd14.prod.outlook.com (2603:10b6:404:79::30) by MWHPR12MB1309.namprd12.prod.outlook.com (2603:10b6:300:10::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14; Fri, 1 Oct 2021 19:35:00 +0000 Received: from BN8NAM11FT068.eop-nam11.prod.protection.outlook.com (2603:10b6:404:79:cafe::c8) by BN6PR14CA0020.outlook.office365.com (2603:10b6:404:79::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.20 via Frontend Transport; Fri, 1 Oct 2021 19:35:00 +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 BN8NAM11FT068.mail.protection.outlook.com (10.13.177.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4566.14 via Frontend Transport; Fri, 1 Oct 2021 19:34:59 +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; Fri, 1 Oct 2021 19:34:56 +0000 From: Viacheslav Ovsiienko To: CC: , , , , , , Date: Fri, 1 Oct 2021 22:34:09 +0300 Message-ID: <20211001193415.23288-9-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20211001193415.23288-1-viacheslavo@nvidia.com> References: <20210922180418.20663-1-viacheslavo@nvidia.com> <20211001193415.23288-1-viacheslavo@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 04b23be5-93c0-4ef5-dbc3-08d985128ea2 X-MS-TrafficTypeDiagnostic: MWHPR12MB1309: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr 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: wSsCWEfJswwV6r0AsPk9TkBTJnSfxbvNs2zpqc3nHan5EuA+DVf4HxdNEna6K/tw/+RTRQNVWKne6OMheA3IJoFx2S2CYl1n4MHSPiInTUVOOx+IBmuZBeVfgmPMRKkWEEwqZNn+Odyhzkm0STUi2tgjmLaoCj1G72KUmxSgUfC2jLCyNWCc1ALcwcB+Q2qy+zrwAwExRme1oMcsus5TF9G7d38Kso9S7ox8Nu3w7ClUSC+9dmvzgjEfgdrRt4MQSBI7ZZMToqbSDiByCiHcJ76wh+J+3dtoOz2mP7tHhgAigo/0XRRp5eo7ZL2J45nU07jwcEUZXUZekYVCGpNaNSm173k9thEwhDUiKq2P/najuagP7+ydtF/VutMyJtY6sooC/4Ndu18R6N1PTLBI8VkyKZZmGgjj+2KJl1mPVA4b807uGHxKaAAR60RiHyFMB3d/t8majmDxwD70Hsv6bK64e/wtToz6AANsXtwbXp6pIpxA1cIL4IiCmyVajNKNjaFLU2msqINNF6KAhF7tqRYu+1J9sxHp9/7gkYThHNiKlEWeZkX3TI1Pt+ahTPJzOlY9/jWkYhAL6Hg7NOTD1OiRzDYTkbDLQfiA+jm6oUtJddk0pQwWv8+sKOqGbXcAGimswXdA69TFwBOjOkjhkI+96gIU4v0p55JlkkZd/1WlKk82iJN8P2O0T8N3UE1jR0kcXqmJF0xLK7pey3Gefg== 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)(8936002)(6916009)(356005)(55016002)(316002)(7636003)(4326008)(8676002)(86362001)(36756003)(54906003)(5660300002)(70586007)(508600001)(6286002)(2616005)(83380400001)(2906002)(70206006)(26005)(186003)(16526019)(7696005)(6666004)(36860700001)(82310400003)(47076005)(336012)(426003)(1076003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2021 19:34:59.6967 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 04b23be5-93c0-4ef5-dbc3-08d985128ea2 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: BN8NAM11FT068.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1309 Subject: [dpdk-dev] [PATCH v2 08/14] 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" From: Gregory Etelson 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 --- 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 294ac480dc..43e51e3f95 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.18.1