Tuesday, May 7, 2019 4:42 PM, Ori Kam: > Subject: [PATCH] net/mlx5: fix errno in case of 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: 4f84a19779ca ("net/mlx5: add Direct Rules API") > > Signed-off-by: Ori Kam <or...@mellanox.com>
Applied to next-net-mlx, thanks.