net/mlx5e: Fix actions_match_supported() return
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Mar 2020 13:23:05 +0000 (16:23 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Mar 2020 06:18:49 +0000 (23:18 -0700)
commit49397b801261160fb5f5d3f28536c792e72ecbb3
tree35962fce94d425bcd295ad054df65baeb86ade18
parent29f3490ba9d2399d3d1b20c4aa74592d92bd4e11
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: 4c3844d9e97e ("net/mlx5e: CT: Introduce connection tracking")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c