Lines Matching refs:dest_tbl

598 		if (dest_action->dest_tbl->is_fw_tbl) {  in dr_action_handle_cs_recalc()
599 *final_icm_addr = dest_action->dest_tbl->fw_tbl.rx_icm_addr; in dr_action_handle_cs_recalc()
671 struct mlx5dr_action_dest_tbl *dest_tbl, in dr_action_get_dest_fw_tbl_addr() argument
679 if (!dest_tbl->fw_tbl.rx_icm_addr) { in dr_action_get_dest_fw_tbl_addr()
681 dest_tbl->fw_tbl.type, in dr_action_get_dest_fw_tbl_addr()
682 dest_tbl->fw_tbl.id, in dr_action_get_dest_fw_tbl_addr()
691 dest_tbl->fw_tbl.tx_icm_addr = output.sw_owner_icm_root_1; in dr_action_get_dest_fw_tbl_addr()
692 dest_tbl->fw_tbl.rx_icm_addr = output.sw_owner_icm_root_0; in dr_action_get_dest_fw_tbl_addr()
695 *final_icm_addr = is_rx_rule ? dest_tbl->fw_tbl.rx_icm_addr : in dr_action_get_dest_fw_tbl_addr()
696 dest_tbl->fw_tbl.tx_icm_addr; in dr_action_get_dest_fw_tbl_addr()
701 struct mlx5dr_action_dest_tbl *dest_tbl, in dr_action_get_dest_sw_tbl_addr() argument
708 if (dest_tbl->tbl->dmn != dmn) { in dr_action_get_dest_sw_tbl_addr()
714 if (dest_tbl->tbl->level <= matcher->tbl->level) { in dr_action_get_dest_sw_tbl_addr()
720 dest_tbl->tbl->level); in dr_action_get_dest_sw_tbl_addr()
723 chunk = is_rx_rule ? dest_tbl->tbl->rx.s_anchor->chunk : in dr_action_get_dest_sw_tbl_addr()
724 dest_tbl->tbl->tx.s_anchor->chunk; in dr_action_get_dest_sw_tbl_addr()
731 struct mlx5dr_action_dest_tbl *dest_tbl, in dr_action_get_dest_tbl_addr() argument
735 if (dest_tbl->is_fw_tbl) in dr_action_get_dest_tbl_addr()
737 dest_tbl, in dr_action_get_dest_tbl_addr()
742 dest_tbl, in dr_action_get_dest_tbl_addr()
788 ret = dr_action_get_dest_tbl_addr(matcher, action->dest_tbl, in mlx5dr_actions_build_ste_arr()
795 action->range->hit_tbl_action->dest_tbl, in mlx5dr_actions_build_ste_arr()
801 action->range->miss_tbl_action->dest_tbl, in mlx5dr_actions_build_ste_arr()
1020 action->dest_tbl->is_fw_tbl = true; in mlx5dr_action_create_dest_table_num()
1021 action->dest_tbl->fw_tbl.dmn = dmn; in mlx5dr_action_create_dest_table_num()
1022 action->dest_tbl->fw_tbl.id = table_num; in mlx5dr_action_create_dest_table_num()
1023 action->dest_tbl->fw_tbl.type = FS_FT_FDB; in mlx5dr_action_create_dest_table_num()
1040 action->dest_tbl->tbl = tbl; in mlx5dr_action_create_dest_table()
1221 if (dest_action->dest_tbl->is_fw_tbl) in mlx5dr_action_create_mult_dest_tbl()
1222 hw_dests[i].ft_id = dest_action->dest_tbl->fw_tbl.id; in mlx5dr_action_create_mult_dest_tbl()
1224 hw_dests[i].ft_id = dest_action->dest_tbl->tbl->table_id; in mlx5dr_action_create_mult_dest_tbl()
1241 &action->dest_tbl->fw_tbl.id, in mlx5dr_action_create_mult_dest_tbl()
1242 &action->dest_tbl->fw_tbl.group_id, in mlx5dr_action_create_mult_dest_tbl()
1253 action->dest_tbl->is_fw_tbl = true; in mlx5dr_action_create_mult_dest_tbl()
1254 action->dest_tbl->fw_tbl.dmn = dmn; in mlx5dr_action_create_mult_dest_tbl()
1255 action->dest_tbl->fw_tbl.type = FS_FT_FDB; in mlx5dr_action_create_mult_dest_tbl()
1256 action->dest_tbl->fw_tbl.ref_actions = ref_actions; in mlx5dr_action_create_mult_dest_tbl()
1257 action->dest_tbl->fw_tbl.num_of_ref_actions = num_of_ref; in mlx5dr_action_create_mult_dest_tbl()
1282 action->dest_tbl->is_fw_tbl = 1; in mlx5dr_action_create_dest_flow_fw_table()
1283 action->dest_tbl->fw_tbl.type = ft->type; in mlx5dr_action_create_dest_flow_fw_table()
1284 action->dest_tbl->fw_tbl.id = ft->id; in mlx5dr_action_create_dest_flow_fw_table()
1285 action->dest_tbl->fw_tbl.dmn = dmn; in mlx5dr_action_create_dest_flow_fw_table()
2157 if (action->dest_tbl->is_fw_tbl) in mlx5dr_action_destroy()
2158 refcount_dec(&action->dest_tbl->fw_tbl.dmn->refcount); in mlx5dr_action_destroy()
2160 refcount_dec(&action->dest_tbl->tbl->refcount); in mlx5dr_action_destroy()
2162 if (action->dest_tbl->is_fw_tbl && in mlx5dr_action_destroy()
2163 action->dest_tbl->fw_tbl.num_of_ref_actions) { in mlx5dr_action_destroy()
2167 ref_actions = action->dest_tbl->fw_tbl.ref_actions; in mlx5dr_action_destroy()
2168 for (i = 0; i < action->dest_tbl->fw_tbl.num_of_ref_actions; i++) in mlx5dr_action_destroy()
2173 mlx5dr_fw_destroy_md_tbl(action->dest_tbl->fw_tbl.dmn, in mlx5dr_action_destroy()
2174 action->dest_tbl->fw_tbl.id, in mlx5dr_action_destroy()
2175 action->dest_tbl->fw_tbl.group_id); in mlx5dr_action_destroy()