net/mlx5: fix inconsistent return value in flow director
authorYaacov Hazan <yaacovh@mellanox.com>
Wed, 14 Sep 2016 11:53:48 +0000 (13:53 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commitc502d05197e35dc2840fdf5892f6310c8cc4b0fd
treeb67f16a79735b93e1b714ad315709a37ea035ae3
parent3702a284e0ed8e55141a4071c17f9de6a3bca892
net/mlx5: fix inconsistent return value in flow director

The return value in DPDK is negative errno on failure.
Since internal functions in mlx driver return positive
values need to negate this value when it returned to
dpdk layer.

Fixes: 76f5c99 ("mlx5: support flow director")

Signed-off-by: Yaacov Hazan <yaacovh@mellanox.com>
drivers/net/mlx5/mlx5_fdir.c