From: Raja Zidane Date: Wed, 2 Mar 2022 08:39:27 +0000 (+0200) Subject: app/compress-perf: fix socket ID type during init X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=220b51f78b46bf773e513a09bf2fa67a9b8428ba;p=dpdk.git app/compress-perf: fix socket ID type during init Socket ID is obtained by function rte_compressdev_socket_id, which returns it as integer, but is interpreted as unsigned byte integer. change type from uint8_t to int. Fixes: ed7dd94f7f66 ("compressdev: add basic device management") Cc: stable@dpdk.org Signed-off-by: Raja Zidane Acked-by: Matan Azrad --- diff --git a/app/test-compress-perf/main.c b/app/test-compress-perf/main.c index 6ff6a2f04a..3402b65c63 100644 --- a/app/test-compress-perf/main.c +++ b/app/test-compress-perf/main.c @@ -168,7 +168,7 @@ comp_perf_initialize_compressdev(struct comp_test_data *test_data, cdev_id = enabled_cdevs[i]; struct rte_compressdev_info cdev_info; - uint8_t socket_id = rte_compressdev_socket_id(cdev_id); + int socket_id = rte_compressdev_socket_id(cdev_id); rte_compressdev_info_get(cdev_id, &cdev_info); if (cdev_info.max_nb_queue_pairs &&