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 BC56EA034F for ; Wed, 10 Nov 2021 07:58:38 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6B874068B; Wed, 10 Nov 2021 07:58:38 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2080.outbound.protection.outlook.com [40.107.212.80]) by mails.dpdk.org (Postfix) with ESMTP id AE44940142 for ; Wed, 10 Nov 2021 07:58:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zt2ETNSTdp8qr/r7QjwQgpzBItxSehKb4l4KQdwzHM6aQGLGQZ1l+4pzL88XNo9yC3WJhO9g1yy4dC3N2JmbQhk27bEoJgB9r8D+TMsBrHZNoM+bTklyB8gytDpbebFNotfWCxy/mtZxlD0bjH2GsJ0g7r/RvWecbzx3X+TiFubsaGKPtAUCJ2UEdqQS8hz7cGEA8q8bO2W8vZyHmTPfSzfPiP48x/60JVf+6kkTXT9mDDBPQcdc/kKvnG44OZKvWQzMkncLtCGEJb5W9noH23+1Jv43VHFN8JYJncBheKQj75WrJg/QXk37myLB2CwzopgMn3hdiwsOwqr03v1szQ== 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=/bBA4Twbnt3WTwU+GlFT4EJkxliol+JCLHLhP4gZCoY=; b=R9V/0haqRkKJoa1H7AUSHLGp+JUBQ/pAtsvw5ipi9TK6oxE1HC05F99YhbRMqsqFJMdWs0pufIVj55WAQ+6azgGrXRCjyWqg9uyCobZT76+Yn6N66dDHoQO2+SkxqxLL+StH72+G/K3WwMHv9+hp6yeCLJdpX68ojOgO1cb2+Q+vaUtubIN9AbRV4XoALyH3eWIGo0rx5zJ+ENpw/860Fkp3Jd8sBSd+QIMXZ31aP7VvF/p440iGkRfF4qXUZm0hGIBTWvDU4yxPVstqyAOOSvriRPfamShznHQiXILTeyGXRp2oOUtCqieqpVAKNymLbaY3lDX8G6COhpX47BuYcw== 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=/bBA4Twbnt3WTwU+GlFT4EJkxliol+JCLHLhP4gZCoY=; b=Bz9r2QpvnHFu1ywhKvA5L1FtmnYbAgJssVM15JDN//oAiDBq11ym3niFAoYbfQ/JA9bBT+QW5hspuZzW1vLuqOuvXuBpafFmk9ops/ooWC/6+lw3P4VKKQc+oOwOplQFFqL3gC7bMz4+uvJprAVqAEJTKxM9FERDU48qldtG2AVk/+PjbXLAJmTmtTqQmwLcDpxPLWcS8hJSDOUXHdnXU/dGZX3RxKvu0+ATCrhH3rmf2Szq1R3sK39H0xHlgHQ2UAMeWm5sbK1AmbolaI/eGMZRDlHxa7TeIGOxcaXMVclrkysTxVmkGx12kN6iE0fqj/R7a71HFx6On4r3WEfnlw== Received: from DS7PR06CA0026.namprd06.prod.outlook.com (2603:10b6:8:54::16) by MN2PR12MB2861.namprd12.prod.outlook.com (2603:10b6:208:af::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.16; Wed, 10 Nov 2021 06:58:36 +0000 Received: from DM6NAM11FT056.eop-nam11.prod.protection.outlook.com (2603:10b6:8:54:cafe::bd) by DS7PR06CA0026.outlook.office365.com (2603:10b6:8:54::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:58:36 +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 DM6NAM11FT056.mail.protection.outlook.com (10.13.173.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:58:33 +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; Wed, 10 Nov 2021 06:58:31 +0000 From: Xueming Li To: Gregory Etelson CC: Luca Boccassi , Viacheslav Ovsiienko , dpdk stable Date: Wed, 10 Nov 2021 14:31:59 +0800 Message-ID: <20211110063216.2744012-236-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fad818fe-4302-4d0e-5442-08d9a41782c0 X-MS-TrafficTypeDiagnostic: MN2PR12MB2861: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KNgaILIzF+tpBDtRVCUoNy0ZlqX5n7M7YExU4HSxL8TpMuih32YtdTvSnucHIZltVnDpKrX1vB8AYJvAPAqBlEw5ABQUMbADa9Ihr+EUyrM0+Pr7HtuIkEcfxvDTyQpqNZvvZvzoW75uWie15VBPRH9MwzvGbNHPWE1j1muHWS6SSr5pDQRLoQVwSz4xAkmp5o8/5dHY1Cv6HoAfOlra8rsIJTf6RHlpSA19Y6RrBWITBusFLqIuAFckOYZBEs/NqWtiAXtQiKI7RB7Y/rIcp8J6mrX4Sr8NcnW/YD/UBOAvtZ/acPaYhW4CjAnwY+M/RBh/8oySX8aq9Vm1avjy3oSjjA2DV7W4kw7ID31tUZtaOYUqYHYasehMEVeRctydOGGNTOmomBKUc+tBUxsMcVjW4rQIP1T8B7cmqh64nr3F6uIHtayICgls/mxzUdg84Ek3MlT4qVAc3e1b5L7TOCyRSUG4CnGqupvFkb9VKXDxz51Uz+Kju9lkp261rNKlqZuc78d4BkPj5UZb6eb6DuLfx5F/Yor8RRyi8MD5uyayyf9NUMgN7/3xiMxCuLtZq8mBpVNqiftmWVu5a+iarCeCa2vIMCx5QgJOwgRgOUKVR1yS2L0VykAtSZTt+2/QMs7zUpeDs6hBXSlPrlByHAIQkhOIF94MCBl1lVm0hsTHfW5R2AmOv8dGQg6Vhz2hCJ/GtPUwnuw1DglmD/wd2YByNbf9ZK637IMPg3mjrTBZw8PVP+neHImANd+gSLJ/DA8LypzVtd4TWaspzEsGvQwbP4X/8he8fWyeTz+gh6qQQwDPOzJyuoM4pnDPC1HzheTa/qY/4p6beu0E4NW1dQ== 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)(1076003)(47076005)(36860700001)(8676002)(336012)(36756003)(37006003)(4001150100001)(4326008)(186003)(508600001)(7636003)(6636002)(7696005)(8936002)(356005)(16526019)(82310400003)(70586007)(2906002)(6286002)(2616005)(6862004)(83380400001)(70206006)(55016002)(54906003)(86362001)(26005)(6666004)(316002)(5660300002)(426003)(966005)(53546011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:58:33.3412 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fad818fe-4302-4d0e-5442-08d9a41782c0 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: DM6NAM11FT056.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB2861 Subject: [dpdk-stable] patch 'common/mlx5: fix flex parser DevX creation routine' has been queued to stable release 20.11.4 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/496a57699cecbb156cfbe917f42ebf089756f3ee Thanks. Xueming Li --- >From 496a57699cecbb156cfbe917f42ebf089756f3ee Mon Sep 17 00:00:00 2001 From: Gregory Etelson Date: Tue, 2 Nov 2021 10:53:40 +0200 Subject: [PATCH] common/mlx5: fix flex parser DevX creation routine Cc: Xueming Li [ upstream commit b28025baf3de556dc8092111404846b32ff7c51d ] Add missing modify_field_select, next_header_field_size field values setting. Fixes: 38119ebe01d6 ("common/mlx5: add DevX command for flex parsers") 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 ee1a3ddbaf..450595ee70 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -518,10 +518,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}; @@ -545,12 +544,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.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:12.250907214 +0800 +++ 0235-common-mlx5-fix-flex-parser-DevX-creation-routine.patch 2021-11-10 14:17:02.067411148 +0800 @@ -1 +1 @@ -From b28025baf3de556dc8092111404846b32ff7c51d Mon Sep 17 00:00:00 2001 +From 496a57699cecbb156cfbe917f42ebf089756f3ee Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit b28025baf3de556dc8092111404846b32ff7c51d ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 9b5a3b181a..0c03c20b25 100644 +index ee1a3ddbaf..450595ee70 100644 @@ -22 +24 @@ -@@ -620,10 +620,9 @@ mlx5_devx_cmd_query_parse_samples(struct mlx5_devx_obj *flex_obj, +@@ -518,10 +518,9 @@ mlx5_devx_cmd_query_parse_samples(struct mlx5_devx_obj *flex_obj, @@ -34 +36 @@ -@@ -647,12 +646,18 @@ mlx5_devx_cmd_create_flex_parser(void *ctx, +@@ -545,12 +544,18 @@ mlx5_devx_cmd_create_flex_parser(void *ctx,