Commit 49397b80 authored by Dan Carpenter's avatar Dan Carpenter Committed by Saeed Mahameed

net/mlx5e: Fix actions_match_supported() return

The actions_match_supported() function returns a bool, true for success
and false for failure.  This error path is returning a negative which
is cast to true but it should return false.

Fixes: 4c3844d9 ("net/mlx5e: CT: Introduce connection tracking")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 29f3490b
...@@ -3057,7 +3057,7 @@ static bool actions_match_supported(struct mlx5e_priv *priv, ...@@ -3057,7 +3057,7 @@ static bool actions_match_supported(struct mlx5e_priv *priv,
*/ */
NL_SET_ERR_MSG_MOD(extack, NL_SET_ERR_MSG_MOD(extack,
"Can't offload mirroring with action ct"); "Can't offload mirroring with action ct");
return -EOPNOTSUPP; return false;
} }
} else { } else {
actions = flow->nic_attr->action; actions = flow->nic_attr->action;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment