Lines Matching refs:fs_matcher
3934 struct mlx5_ib_flow_matcher *fs_matcher, in _get_flow_table() argument
3947 priority = ib_prio_to_core_prio(fs_matcher->priority, false); in _get_flow_table()
3951 if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_BYPASS) { in _get_flow_table()
3960 } else if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_EGRESS) { in _get_flow_table()
3965 } else if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_FDB) { in _get_flow_table()
3974 } else if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_RDMA_RX) { in _get_flow_table()
3978 priority = fs_matcher->priority; in _get_flow_table()
3983 ns = mlx5_get_flow_namespace(dev->mdev, fs_matcher->ns_type); in _get_flow_table()
3987 if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_BYPASS) in _get_flow_table()
3989 else if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_EGRESS) in _get_flow_table()
3991 else if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_FDB) in _get_flow_table()
3993 else if (fs_matcher->ns_type == MLX5_FLOW_NAMESPACE_RDMA_RX) in _get_flow_table()
4010 struct mlx5_ib_flow_matcher *fs_matcher, in _create_raw_flow_rule() argument
4031 memcpy(spec->match_criteria, fs_matcher->matcher_mask.match_params, in _create_raw_flow_rule()
4032 fs_matcher->mask_len); in _create_raw_flow_rule()
4033 spec->match_criteria_enable = fs_matcher->match_criteria_enable; in _create_raw_flow_rule()
4056 static bool raw_fs_is_multicast(struct mlx5_ib_flow_matcher *fs_matcher, in raw_fs_is_multicast() argument
4064 if (!(fs_matcher->match_criteria_enable & in raw_fs_is_multicast()
4068 match_c = fs_matcher->matcher_mask.match_params; in raw_fs_is_multicast()
4098 struct mlx5_ib_flow_matcher *fs_matcher, in mlx5_ib_raw_fs_rule_add() argument
4112 if (fs_matcher->flow_type != MLX5_IB_FLOW_TYPE_NORMAL) in mlx5_ib_raw_fs_rule_add()
4115 if (fs_matcher->priority > MLX5_IB_FLOW_LAST_PRIO) in mlx5_ib_raw_fs_rule_add()
4122 mcast = raw_fs_is_multicast(fs_matcher, cmd_in); in mlx5_ib_raw_fs_rule_add()
4125 ft_prio = _get_flow_table(dev, fs_matcher, mcast); in mlx5_ib_raw_fs_rule_add()
4152 handler = _create_raw_flow_rule(dev, ft_prio, dst, fs_matcher, in mlx5_ib_raw_fs_rule_add()
4162 atomic_inc(&fs_matcher->usecnt); in mlx5_ib_raw_fs_rule_add()
4163 handler->flow_matcher = fs_matcher; in mlx5_ib_raw_fs_rule_add()