app/compress-perf: fix socket ID type during init
PATCH 1/1 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")
Signed-off-by Raja Zidane <[email protected]>
Acked-by Matan Azrad <[email protected]>
--- app/test-compress-perf/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
app/test-compress-perf/main.c +1 -1
@@ -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 &&
Signature · 1 line
2.21.0
Akhil Goyal
AppliedQuoted 11 lines
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_tto int.Fixes ed7dd94f7f66 ("compressdev: add basic device management")Signed-off-by Raja Zidane <[email protected]>Acked-by Matan Azrad <[email protected]>
Applied to dpdk-next-crypto