Skip to content

Commit

Permalink
app/compress-perf: fix socket ID type during init
Browse files Browse the repository at this point in the history
[ upstream commit 220b51f ]

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: ed7dd94 ("compressdev: add basic device management")

Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
  • Loading branch information
RajaZid20 authored and bluca committed Mar 9, 2022
1 parent c30254b commit 9df88bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test-compress-perf/main.c
Expand Up @@ -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 &&
Expand Down

0 comments on commit 9df88bf

Please sign in to comment.