]> git.droids-corp.org - dpdk.git/commit
compressdev: fix socket ID type
authorRaja Zidane <rzidane@nvidia.com>
Tue, 1 Mar 2022 14:15:02 +0000 (16:15 +0200)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 4 Mar 2022 10:00:06 +0000 (11:00 +0100)
commitc0941508b30618b9dd335fb4b533d451f8686f3b
tree53d03e6723035e642ac9ecf98dd2a9b3b9ba0b22
parente77e8b66d1f917419f9e6bea4148a3f246bbc75d
compressdev: fix socket ID type

Socket ID is used and interpreted as integer, one of the possible
values for socket id is -1 (SOCKET_ID_ANY).
here socket_id is defined as unsigned 8 bit integer, so when putting
-1, it is interpreted as 255, which causes allocation errors when
trying to allocate from socket_id (255).

change socket_id from unsigned 8 bit integer to integer.

Fixes: ed7dd94f7f66 ("compressdev: add basic device management")
Cc: stable@dpdk.org
Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
lib/compressdev/rte_compressdev_internal.h