Commit e3e0f9b2 authored by wenxu's avatar wenxu Committed by Saeed Mahameed
Browse files

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: 6d65bc64 ("net/mlx5e: Add mlx5e_flower_parse_meta support")
Signed-off-by: default avatarwenxu <wenxu@ucloud.cn>
Acked-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 7a320c9d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1895,6 +1895,9 @@ static int mlx5e_flower_parse_meta(struct net_device *filter_dev,
		return 0;

	flow_rule_match_meta(rule, &match);
	if (!match.mask->ingress_ifindex)
		return 0;

	if (match.mask->ingress_ifindex != 0xFFFFFFFF) {
		NL_SET_ERR_MSG_MOD(extack, "Unsupported ingress ifindex mask");
		return -EOPNOTSUPP;