]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 14 Apr 2021 23:13:00 +0000 (16:13 -0700)
commit3d654efeef4f46cb6e71202c6d9429cd9f5467d7
tree5effa7f5b973b4ffa4568690c6dc94dd623898d4
parentdeaa6a51b650215eefc3d09792de508a1df5217d
net/mlx5e: fix ingress_ifindex check in mlx5e_flower_parse_meta

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: acf4ff9eeffd ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c