Lines Matching refs:rule
1657 static void add_rule_to_tree(struct mlx5_flow_rule *rule,
1662 dest_name = get_dest_name(&rule->dest_attr);
1663 fs_add_node(&rule->base, &fte->base, dest_name, 1);
1665 list_add_tail(&rule->base.list, &fte->dests);
1667 call_to_add_rule_notifiers(rule, fte);
2284 u8 mlx5_get_match_criteria_enable(struct mlx5_flow_rule *rule)
2289 pbase = rule->base.parent;
2299 struct mlx5_flow_rule *rule)
2304 pbase = rule->base.parent;
2312 struct mlx5_flow_rule *rule)
2317 pbase = rule->base.parent;
2426 int mlx5_set_rule_private_data(struct mlx5_flow_rule *rule,
2432 mutex_lock(&rule->clients_lock);
2434 list_for_each_entry(priv_data, &rule->clients_data, list) {
2442 mutex_unlock(&rule->clients_lock);
2448 list_add(&priv_data->list, &rule->clients_data);
2451 mutex_unlock(&rule->clients_lock);
2456 static int remove_from_clients(struct mlx5_flow_rule *rule,
2466 mutex_lock(&rule->clients_lock);
2468 &rule->clients_data, list) {
2475 mutex_unlock(&rule->clients_lock);