aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGravatar Ariel Levkovich <lariel@nvidia.com> 2022-01-29 01:39:24 +0200
committerGravatar Saeed Mahameed <saeedm@nvidia.com> 2022-02-23 16:08:13 -0800
commit07666c75ad17d7389b18ac0235c8cf41e1504ea8 (patch)
tree9b0577a235955d1ad948b4851d00ef3237ce6a21 /drivers
parentnet/mlx5: Update log_max_qp value to be 17 at most (diff)
downloadlinux-07666c75ad17d7389b18ac0235c8cf41e1504ea8.tar.gz
linux-07666c75ad17d7389b18ac0235c8cf41e1504ea8.tar.bz2
linux-07666c75ad17d7389b18ac0235c8cf41e1504ea8.zip
net/mlx5: Fix wrong limitation of metadata match on ecpf
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
index 9a7b25692505..cfcd72bad9af 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
@@ -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;
}