Skip to content

Commit e3e0f9b

Browse files
wenxuSaeed Mahameed
authored andcommitted
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: 6d65bc6 ("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>
1 parent 7a320c9 commit e3e0f9b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,9 @@ static int mlx5e_flower_parse_meta(struct net_device *filter_dev,
18951895
return 0;
18961896

18971897
flow_rule_match_meta(rule, &match);
1898+
if (!match.mask->ingress_ifindex)
1899+
return 0;
1900+
18981901
if (match.mask->ingress_ifindex != 0xFFFFFFFF) {
18991902
NL_SET_ERR_MSG_MOD(extack, "Unsupported ingress ifindex mask");
19001903
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)