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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:48:00 +0000 (11:48 +0100)
commit9703a9e2f968a4527519836e20b1698e6ac23b71
tree2e1ee71649b79325931ff4f49a5b355d79a5fa77
parentf63548dd05ab6a7eb895911a029ba0f2a1120d7b
net/mlx5: Fix wrong limitation of metadata match on ecpf

commit 07666c75ad17d7389b18ac0235c8cf41e1504ea8 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c