The 'u32' data can not assigned to 'int' type variable. The 'u32' data need
to use the 'u32' telemetry API to add.

Fixes: d3d98f5ce9d0 ("cryptodev: support telemetry")
Cc: sta...@dpdk.org

Signed-off-by: Huisong Li <lihuis...@huawei.com>
---
 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..8e19411164 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_u32(d, "max_nb_queue_pairs",
                cryptodev_info.max_nb_queue_pairs);
 
        return 0;
-- 
2.33.0

Reply via email to