Home
last modified time | relevance | path

Searched refs:ste_arr (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_icm_pool.c216 chunk->ste_arr = &buddy->ste_arr[index]; in dr_icm_chunk_ste_init()
221 memset(chunk->ste_arr, 0, in dr_icm_chunk_ste_init()
222 num_of_entries * sizeof(chunk->ste_arr[0])); in dr_icm_chunk_ste_init()
230 buddy->ste_arr = kvcalloc(num_of_entries, in dr_icm_buddy_init_ste_cache()
232 if (!buddy->ste_arr) in dr_icm_buddy_init_ste_cache()
252 kvfree(buddy->ste_arr); in dr_icm_buddy_init_ste_cache()
258 kvfree(buddy->ste_arr); in dr_icm_buddy_cleanup_ste_cache()
Ddr_rule.c77 ste = new_htbl->chunk->ste_arr; in dr_rule_create_collision_htbl()
272 new_ste = &new_htbl->chunk->ste_arr[new_idx]; in dr_rule_rehash_copy_ste()
367 cur_ste = &cur_htbl->chunk->ste_arr[i]; in dr_rule_rehash_copy_htbl()
485 ste_to_update = &prev_htbl->chunk->ste_arr[0]; in dr_rule_rehash_htbl()
639 int mlx5dr_rule_get_reverse_rule_members(struct mlx5dr_ste **ste_arr, in mlx5dr_rule_get_reverse_rule_members() argument
653 ste_arr[*num_of_stes] = curr_ste; in mlx5dr_rule_get_reverse_rule_members()
664 struct mlx5dr_ste *ste_arr[DR_RULE_MAX_STES + DR_ACTION_MAX_STES]; in dr_rule_clean_rule_members() local
668 if (mlx5dr_rule_get_reverse_rule_members(ste_arr, curr_ste, &i)) in dr_rule_clean_rule_members()
672 mlx5dr_ste_put(ste_arr[i], rule->matcher, nic_rule->nic_matcher); in dr_rule_clean_rule_members()
857 ste = &cur_htbl->chunk->ste_arr[index]; in dr_rule_handle_ste_branch()
Ddr_ste.c127 u32 index = ste - ste->htbl->chunk->ste_arr; in mlx5dr_ste_get_icm_addr()
134 u32 index = ste - ste->htbl->chunk->ste_arr; in mlx5dr_ste_get_mr_addr()
141 u64 index = ste - ste->htbl->chunk->ste_arr; in mlx5dr_ste_get_hw_ste()
148 u32 index = ste - ste->htbl->chunk->ste_arr; in mlx5dr_ste_get_miss_list()
523 struct mlx5dr_ste *ste = &chunk->ste_arr[i]; in mlx5dr_ste_htbl_alloc()
749 u8 *ste_arr) in mlx5dr_ste_build_ste_arr() argument
765 ste_ctx->ste_init(ste_arr, in mlx5dr_ste_build_ste_arr()
770 mlx5dr_ste_set_bit_mask(ste_arr, sb->bit_mask); in mlx5dr_ste_build_ste_arr()
772 ret = sb->ste_build_tag_func(value, sb, dr_ste_get_tag(ste_arr)); in mlx5dr_ste_build_ste_arr()
782 ste_ctx->set_next_lu_type(ste_arr, sb->lu_type); in mlx5dr_ste_build_ste_arr()
[all …]
Ddr_matcher.c729 curr_nic_matcher->s_htbl->pointing_ste = prev_htbl->chunk->ste_arr; in dr_nic_matcher_connect()
730 prev_htbl->chunk->ste_arr[0].next_htbl = curr_nic_matcher->s_htbl; in dr_nic_matcher_connect()
734 curr_nic_matcher->e_anchor->chunk->ste_arr; in dr_nic_matcher_connect()
735 curr_nic_matcher->e_anchor->chunk->ste_arr[0].next_htbl = in dr_nic_matcher_connect()
1048 next_nic_matcher->s_htbl->pointing_ste = prev_anchor->chunk->ste_arr; in dr_matcher_disconnect_nic()
1049 prev_anchor->chunk->ste_arr[0].next_htbl = next_nic_matcher->s_htbl; in dr_matcher_disconnect_nic()
1053 prev_anchor->chunk->ste_arr[0].next_htbl = NULL; in dr_matcher_disconnect_nic()
Dmlx5dr.h182 struct mlx5dr_ste *ste_arr; member
Ddr_types.h390 u8 *ste_arr);
522 u8 *ste_arr,
1168 int mlx5dr_rule_get_reverse_rule_members(struct mlx5dr_ste **ste_arr,
1182 struct mlx5dr_ste *ste_arr; member
Ddr_dbg.c527 struct mlx5dr_ste *ste_arr[DR_RULE_MAX_STES + DR_ACTION_MAX_STES]; in dr_dump_rule_rx_tx() local
531 if (mlx5dr_rule_get_reverse_rule_members(ste_arr, curr_ste, &i)) in dr_dump_rule_rx_tx()
535 ret = dr_dump_rule_mem(file, buff, ste_arr[i], is_rx, rule_id, in dr_dump_rule_rx_tx()
Ddr_send.c740 struct mlx5dr_ste *ste = &htbl->chunk->ste_arr[ste_index + j]; in mlx5dr_send_postsend_htbl()
766 mlx5dr_ste_get_mr_addr(htbl->chunk->ste_arr + ste_index); in mlx5dr_send_postsend_htbl()
823 mlx5dr_ste_get_mr_addr(htbl->chunk->ste_arr + ste_index); in mlx5dr_send_postsend_formatted_htbl()
Ddr_action.c760 u8 *ste_arr, in mlx5dr_actions_build_ste_arr() argument
951 last_ste = ste_arr + DR_STE_SIZE * (nic_matcher->num_of_builders - 1); in mlx5dr_actions_build_ste_arr()