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 BAB4041D52 for ; Thu, 23 Feb 2023 16:07:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6BD543246; Thu, 23 Feb 2023 16:07:30 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 0F87243246 for ; Thu, 23 Feb 2023 16:07:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677164848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Nm7QD9Jt44jhVR8l4MQenHB+DkHN3Ct5csBM88cSRxM=; b=NtF4ORFZ7jEsA+XFz6XBjInU8qcG26MAGU7bOWf22kYYs2v2aRiJ/TE+CLF5znixa53IPH S3A7pgWfeAYmuviXBJGn46USvPC55HLoHqzGSI2DC88BWozrjSBE6gE96gbWwFghiz/y3Z vDfeLK55InLj8a3LWAEFJKpDq/NodEE= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-578-vAFFpILqMIy9FsFX_jxUZQ-1; Thu, 23 Feb 2023 10:07:23 -0500 X-MC-Unique: vAFFpILqMIy9FsFX_jxUZQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8E86E280605C; Thu, 23 Feb 2023 15:07:13 +0000 (UTC) Received: from rh.redhat.com (unknown [10.39.192.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id AA0452166B29; Thu, 23 Feb 2023 15:07:12 +0000 (UTC) From: Kevin Traynor 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 21.11.4 Date: Thu, 23 Feb 2023 15:05:10 +0000 Message-Id: <20230223150631.723699-19-ktraynor@redhat.com> In-Reply-To: <20230223150631.723699-1-ktraynor@redhat.com> References: <20230223150631.723699-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 21.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 02/28/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://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/ddb46da59909d3c4d29aa1b4386dbecffa298363 Thanks. Kevin --- >From ddb46da59909d3c4d29aa1b4386dbecffa298363 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 [ 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 8b057b989c..00fdd18630 100644 --- a/lib/cryptodev/rte_cryptodev.c +++ b/lib/cryptodev/rte_cryptodev.c @@ -2473,5 +2473,5 @@ cryptodev_handle_dev_info(const char *cmd __rte_unused, 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); -- 2.39.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-23 14:46:24.310852847 +0000 +++ 0019-cryptodev-fix-telemetry-data-truncation.patch 2023-02-23 14:46:23.727235816 +0000 @@ -1 +1 @@ -From 45038f04ab577db8844ef54d7f523119be6c205f Mon Sep 17 00:00:00 2001 +From ddb46da59909d3c4d29aa1b4386dbecffa298363 Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit 45038f04ab577db8844ef54d7f523119be6c205f ] + @@ -13 +14,0 @@ -Cc: stable@dpdk.org @@ -23 +24 @@ -index 742a4c512e..22e7122613 100644 +index 8b057b989c..00fdd18630 100644 @@ -26 +27 @@ -@@ -2860,5 +2860,5 @@ cryptodev_handle_dev_info(const char *cmd __rte_unused, +@@ -2473,5 +2473,5 @@ cryptodev_handle_dev_info(const char *cmd __rte_unused,