net/mlx5e: fix ingress_ifindex check in mlx5e_flower_parse_meta
authorwenxu <wenxu@ucloud.cn>
Fri, 9 Apr 2021 05:33:48 +0000 (13:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Apr 2021 11:00:56 +0000 (13:00 +0200)
commitcda5507d234fe6564a30e27436cb7758d1d3fccd
tree25df24332c09992a2b39bc02dd8bcf1cd907e76c
parent40ed1d29f1511a4c5bbd064bc2c097887a3b7443
net/mlx5e: fix ingress_ifindex check in mlx5e_flower_parse_meta

commit e3e0f9b279705154b951d579dc3d8b7041710e24 upstream.

In the nft_offload there is the mate flow_dissector with no
ingress_ifindex but with ingress_iftype that only be used
in the software. So if the mask of ingress_ifindex in meta is
0, this meta check should be bypass.

Fixes: 6d65bc64e232 ("net/mlx5e: Add mlx5e_flower_parse_meta support")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c