gpu/cuda: set rte_errno
authorElena Agostini <eagostini@nvidia.com>
Wed, 24 Nov 2021 18:34:09 +0000 (18:34 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Nov 2021 11:00:42 +0000 (12:00 +0100)
commit94220b39773e1f3b3cb37333f91edd094b221590
tree5d6c0cc8b76a243559ab2757c4e0638d720989f0
parent1674c56dc30d0faacc642c40ff308c3944184564
gpu/cuda: set rte_errno

Set correct rte_errno variable in CUDA driver
and return -rte_errno in case of error.

rte_errno values are compliant with the gpudev library documentation.

Fixes: 1306a73b1958 ("gpu/cuda: introduce CUDA driver")

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
drivers/gpu/cuda/cuda.c