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 BAD0E41D8D for ; Mon, 27 Feb 2023 08:05:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B607241611; Mon, 27 Feb 2023 08:05:10 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2061.outbound.protection.outlook.com [40.107.92.61]) by mails.dpdk.org (Postfix) with ESMTP id CE3774114B for ; Mon, 27 Feb 2023 08:05:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iBUpWrxTHUEzCcB4Ub9Hy+cQ4bB/2L109PnGZlXI6CCbRokCm2kYT/jl7QYW/71QoEUlfseQjVVpKAB0omNlsKo6+ns++IFTs8N1d2ebQ4hg9jgOs09UPztJoc/124vILD7VorZ3pk8iOdFMHvQE7LfmID9GloA6WybmVacxjJ1msCIw1Dr6HJbTfWgsY4GilHa4q/oioTZbCAs3bdpUGhu/FRT+p078Xa1ap8lzAjGZNxx74N20IY5H5mk0KVvwZ63xOHp8GWtOfxlo7l46yUAqNH9P7wUxvFkTYIeUfM4jAFlEgd/CqO35IOJEY39vPYcF7EmNBPQOAPL3x/yBnA== 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=3Dd3/Iu8OTOQcY0cFd1vVCq9PPt0PEbMGr3ZQAYs76c=; b=WY2sQgorqFIInp2dR4hFw2xkq8IlzixEXiFf9i0RZq7DtRKcq17GxC2sd5AFlakmJxNOoVVVoALegpjm/mLAs6AD4uGDV5QWSI0StFdvBxYFhCQwMF1M0Aixp3TYfZWNXzYCCv9O3YrI8cr+D6N07c8hqudZTblDIrB2iWS8Xw63qz/FMDq870Y0T3N1yzZritvz5RauB+aTnqoik7n6XYwDXoWfUQFJ8qilrycYzt3wNHxJ/t/3koOiDEvDRD7ft6xX4vvsQhF3cpCJKZkABfSGaoqOcT9d2buNXbbZKf3SrbT6p0Dk9C3PEh806Ax7lR0XMq61NuYoH+HyWWMZSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=huawei.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 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=3Dd3/Iu8OTOQcY0cFd1vVCq9PPt0PEbMGr3ZQAYs76c=; b=gxVCySOfEBURSmEsEjK2/KPnyTHZU4lbBVTlaEFkI59dEZCsGDfEvCelAS3SQTBK+8gXROtRE5z+EmRf9FiA4qsj7eHErTQzQifUW+nSUzL2OQZF1jlzfsI00ugc4sjlqQ5kTSfX+h4+Rfdqr2nvHHEKcw4ceUoFQiW+LnDYEzP+y9qREExFtxuaOQPKiOt9tdBPQo7dA1Ifvd/jqxJLmoRVUvrQXuQBciq+lSYAiVKsRztHqFpF5XRxZMfLnLFxIn8rOUUMUb1X8l3z51wdz0bVsiJ2PsKtusUaOk1rg7iP2Vi51f5lV7/+5Z+77zG6ECjfaNr9w+NeCr69gc79tw== Received: from MN2PR16CA0009.namprd16.prod.outlook.com (2603:10b6:208:134::22) by MW6PR12MB7088.namprd12.prod.outlook.com (2603:10b6:303:238::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.25; Mon, 27 Feb 2023 07:05:07 +0000 Received: from BL02EPF000108E9.namprd05.prod.outlook.com (2603:10b6:208:134:cafe::d) by MN2PR16CA0009.outlook.office365.com (2603:10b6:208:134::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:05:07 +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 BL02EPF000108E9.mail.protection.outlook.com (10.167.241.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:05:06 +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.36; Sun, 26 Feb 2023 23:04:50 -0800 Received: from nvidia.com (10.126.231.37) 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.37; Sun, 26 Feb 2023 23:04:47 -0800 From: Xueming Li To: Huisong Li CC: =?UTF-8?q?Morten=20Br=C3=B8rup?= , Chengwen Feng , dpdk stable Subject: patch 'cryptodev: fix telemetry data truncation' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:59:03 +0800 Message-ID: <20230227070107.15664-35-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.231.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF000108E9:EE_|MW6PR12MB7088:EE_ X-MS-Office365-Filtering-Correlation-Id: f82d882a-62a2-4a96-9fb8-08db1890f52f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T5Q5KLTa8bcvEQHFczp8V+UXhsq4r7my7G0Iz7qVsArQFusa7FFpVgaP2VUAqwjTFNztNP6rsVqtvO+CVc2yhc7sr/n44d/Ro0f8wPtIZzHGO95cR8iW6nTE3Vf6KPQ4aMb5pDdQzIGl7nXA37K8HdE7fp5RPZE8vgeeU0X5xU7x78m15r6muJDEICC0AdbCPkjQjDxUKI566kxVrKdemRRMbn0VmuqngOUo/reAQMP+EmiK5fm3LD/BoSlWeNRu4eqj98Jb5twOSNYtxoNShxu3P6wtdxj9mq/boN3/k7rnozCDE/83nZbH6bjzZ2fIMaehpScj5pMZ57qSK9NcDLkDPo0StilhyilVmNkz8EzEfn0+o/yANx37kWuPmpJ6TA6TtX7mzYb0kieZad8CLsz4AasH8KT1RKc0mYnWSWfbwIrheLQ9g2kKfxoaaPeqNrKYfeFrMssdrjskwcRxXu/6WupVPTolUSr6PKUnIXBa2NNlgsXOagQ/0iqm9i7zvOYV7v++lqOR8SsJ8LeH7eSSmPRpd0c1WjkXnmhJ5OHCCk2llP0E9EWLXKAxNnN6Kc40ArKgvckYFSqY1uybfR7lv1B++ppMKsORXsj23xOYOf4GqHv6BddbBLUzFdskmww4ijp0v/LDqrWq4ah2tyKbDf3d6Qd1N4YHMP2gGrPklW4tyKF9MDgjCoaq0KUCEf5wXcC6G7tFf7mk/iO66iiiDJIksKEddv22BgY6/YO5HfDYcRI0zGQvAGOsm1DDZzbUp6wTvrHhXt2/inXaaOvygVQUCmRYqSCMFeqF1Tw= 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:(13230025)(4636009)(346002)(39860400002)(396003)(376002)(136003)(451199018)(36840700001)(40470700004)(46966006)(55016003)(36756003)(40480700001)(40460700003)(86362001)(478600001)(41300700001)(6916009)(356005)(8936002)(4326008)(2616005)(70206006)(7696005)(82310400005)(8676002)(70586007)(966005)(316002)(54906003)(5660300002)(6286002)(186003)(2906002)(36860700001)(83380400001)(7636003)(82740400003)(6666004)(47076005)(16526019)(26005)(53546011)(1076003)(66574015)(426003)(336012); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:05:06.8609 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f82d882a-62a2-4a96-9fb8-08db1890f52f 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: BL02EPF000108E9.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB7088 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 Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=453a4d30ed1e8e3607800b703d1e0106373ff129 Thanks. Xueming Li --- >From 453a4d30ed1e8e3607800b703d1e0106373ff129 Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Mon, 19 Dec 2022 15:06:44 +0800 Subject: [PATCH] cryptodev: fix telemetry data truncation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 45038f04ab577db8844ef54d7f523119be6c205f ] The 'u32' data can not assigned to 'int' type variable. The 'u32' data needs to use the 'u64' APIs to add. Fixes: d3d98f5ce9d0 ("cryptodev: support telemetry") Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/cryptodev/rte_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c index 2165a0688c..515d0df5ce 100644 --- a/lib/cryptodev/rte_cryptodev.c +++ b/lib/cryptodev/rte_cryptodev.c @@ -2692,7 +2692,7 @@ cryptodev_handle_dev_info(const char *cmd __rte_unused, rte_tel_data_start_dict(d); rte_tel_data_add_dict_string(d, "device_name", cryptodev_info.device->name); - rte_tel_data_add_dict_int(d, "max_nb_queue_pairs", + rte_tel_data_add_dict_u64(d, "max_nb_queue_pairs", cryptodev_info.max_nb_queue_pairs); return 0; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:42.074390000 +0800 +++ 0036-cryptodev-fix-telemetry-data-truncation.patch 2023-02-27 14:08:40.749237000 +0800 @@ -1 +1 @@ -From 45038f04ab577db8844ef54d7f523119be6c205f Mon Sep 17 00:00:00 2001 +From 453a4d30ed1e8e3607800b703d1e0106373ff129 Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 45038f04ab577db8844ef54d7f523119be6c205f ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index 742a4c512e..22e7122613 100644 +index 2165a0688c..515d0df5ce 100644 @@ -26 +28 @@ -@@ -2859,7 +2859,7 @@ cryptodev_handle_dev_info(const char *cmd __rte_unused, +@@ -2692,7 +2692,7 @@ cryptodev_handle_dev_info(const char *cmd __rte_unused,