numam-dpdk/drivers
Ori Kam 617ecc9000 net/mlx5: fix errno for unsupported Direct Rules
When Direct Rules API is not supported we don't set the errno.
This results in failing the function but with errno equals to zero.
The result of this is that a function that failed, is considered as
a function that worked correctly.

This commit fixes this issue by setting the errno to ENOTSUP and
returning this error when error value should be returned.

Since RDMA-CORE are returning positive errno we are also returning
positive error values.

Fixes: 4f84a19779 ("net/mlx5: add Direct Rules API")

Signed-off-by: Ori Kam <orika@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
2019-05-08 17:29:31 +02:00
..
baseband bb/turbo_sw: update for FlexRAN 18.09 2018-12-19 11:19:10 +01:00
bus bus/fslmc: fix warning with GCC 9 2019-05-02 14:17:26 +02:00
common doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
compress compress/qat: fix dataplane return 2019-04-18 16:01:28 +02:00
crypto crypto/zuc: fix dependency check 2019-05-02 10:34:05 +02:00
event event/dsw: fix capability flags 2019-05-03 22:52:37 +02:00
mempool build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
net net/mlx5: fix errno for unsupported Direct Rules 2019-05-08 17:29:31 +02:00
raw doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
Makefile drivers: add common as dependency for bus 2018-10-16 14:54:25 +02:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00