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>
enum rte_filter_op filter_op,
void *arg)
{
enum rte_filter_op filter_op,
void *arg)
{
struct priv *priv = dev->data->dev_private;
switch (filter_type) {
struct priv *priv = dev->data->dev_private;
switch (filter_type) {