net/mlx5: Fix wrong limitation of metadata match on ecpf
authorAriel Levkovich <lariel@nvidia.com>
Fri, 28 Jan 2022 23:39:24 +0000 (01:39 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 24 Feb 2022 00:08:13 +0000 (16:08 -0800)
Match metadata support check returns false for ecpf device.
However, this support does exist for ecpf and therefore this
limitation should be removed to allow feature such as stacked
devices and internal port offloaded to be supported.

Fixes: 92ab1eb392c6 ("net/mlx5: E-Switch, Enable vport metadata matching if firmware supports it")
Signed-off-by: Ariel Levkovich <lariel@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

index 9a7b256..cfcd72b 100644 (file)
@@ -2838,10 +2838,6 @@ bool mlx5_esw_vport_match_metadata_supported(const struct mlx5_eswitch *esw)
        if (!MLX5_CAP_ESW_FLOWTABLE(esw->dev, flow_source))
                return false;
 
-       if (mlx5_core_is_ecpf_esw_manager(esw->dev) ||
-           mlx5_ecpf_vport_exists(esw->dev))
-               return false;
-
        return true;
 }