* [PATCH] app/compress-perf: fix socket ID type during init
@ 2022-03-02 8:39 Raja Zidane
2022-03-04 9:51 ` [EXT] " Akhil Goyal
0 siblings, 1 reply; 2+ messages in thread
From: Raja Zidane @ 2022-03-02 8:39 UTC (permalink / raw)
To: dev; +Cc: matan, fiona.trahe, stable
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: fiona.trahe@intel.com
Cc: stable@dpdk.org
Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
---
app/test-compress-perf/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 &&
--
2.21.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [EXT] [PATCH] app/compress-perf: fix socket ID type during init
2022-03-02 8:39 [PATCH] app/compress-perf: fix socket ID type during init Raja Zidane
@ 2022-03-04 9:51 ` Akhil Goyal
0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2022-03-04 9:51 UTC (permalink / raw)
To: Raja Zidane, dev; +Cc: matan, fiona.trahe, stable
> 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: fiona.trahe@intel.com
> Cc: stable@dpdk.org
>
> Signed-off-by: Raja Zidane <rzidane@nvidia.com>
> Acked-by: Matan Azrad <matan@nvidia.com>
Applied to dpdk-next-crypto
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-04 9:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-02 8:39 [PATCH] app/compress-perf: fix socket ID type during init Raja Zidane
2022-03-04 9:51 ` [EXT] " Akhil Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).