Lines Matching refs:veb

304 static int i40e_veb_release(struct i40e_veb *veb);
2637 pf->main_vsi->veb->seid, in i40e_dev_close()
5328 i40e_veb_release(struct i40e_veb *veb) in i40e_veb_release() argument
5333 if (veb == NULL) in i40e_veb_release()
5336 if (!TAILQ_EMPTY(&veb->head)) { in i40e_veb_release()
5341 if (veb->associate_vsi != NULL) { in i40e_veb_release()
5342 vsi = veb->associate_vsi; in i40e_veb_release()
5345 vsi->uplink_seid = veb->uplink_seid; in i40e_veb_release()
5346 vsi->veb = NULL; in i40e_veb_release()
5348 veb->associate_pf->main_vsi->floating_veb = NULL; in i40e_veb_release()
5349 hw = I40E_VSI_TO_HW(veb->associate_pf->main_vsi); in i40e_veb_release()
5352 i40e_aq_delete_element(hw, veb->seid, NULL); in i40e_veb_release()
5353 rte_free(veb); in i40e_veb_release()
5361 struct i40e_veb *veb; in i40e_veb_setup() local
5372 veb = rte_zmalloc("i40e_veb", sizeof(struct i40e_veb), 0); in i40e_veb_setup()
5373 if (!veb) { in i40e_veb_setup()
5378 veb->associate_vsi = vsi; in i40e_veb_setup()
5379 veb->associate_pf = pf; in i40e_veb_setup()
5380 TAILQ_INIT(&veb->head); in i40e_veb_setup()
5381 veb->uplink_seid = vsi ? vsi->uplink_seid : 0; in i40e_veb_setup()
5385 ret = i40e_aq_add_veb(hw, veb->uplink_seid, vsi->seid, in i40e_veb_setup()
5387 &veb->seid, false, NULL); in i40e_veb_setup()
5390 true, &veb->seid, false, NULL); in i40e_veb_setup()
5398 veb->enabled_tc = I40E_DEFAULT_TCMAP; in i40e_veb_setup()
5401 ret = i40e_aq_get_veb_parameters(hw, veb->seid, NULL, NULL, in i40e_veb_setup()
5402 &veb->stats_idx, NULL, NULL, NULL); in i40e_veb_setup()
5411 vsi->uplink_seid = veb->seid; in i40e_veb_setup()
5413 return veb; in i40e_veb_setup()
5415 rte_free(veb); in i40e_veb_setup()
5442 if (vsi->veb) { in i40e_vsi_release()
5443 TAILQ_FOREACH_SAFE(vsi_list, &vsi->veb->head, list, temp) { in i40e_vsi_release()
5447 i40e_veb_release(vsi->veb); in i40e_vsi_release()
5466 if (vsi->parent_vsi == NULL || vsi->parent_vsi->veb == NULL) { in i40e_vsi_release()
5470 TAILQ_REMOVE(&vsi->parent_vsi->veb->head, in i40e_vsi_release()
5686 uplink_vsi->veb == NULL) { in i40e_vsi_setup()
5687 uplink_vsi->veb = i40e_veb_setup(pf, uplink_vsi); in i40e_vsi_setup()
5689 if (uplink_vsi->veb == NULL) { in i40e_vsi_setup()
6004 TAILQ_INSERT_TAIL(&uplink_vsi->veb->head, in i40e_vsi_setup()
10337 if (pf->main_vsi->veb == NULL || pf->vfs == NULL) { in i40e_mirror_rule_set()
10352 seid = pf->main_vsi->veb->seid; in i40e_mirror_rule_set()
10502 seid = pf->main_vsi->veb->seid; in i40e_mirror_rule_reset()
10917 i40e_config_switch_comp_tc(struct i40e_veb *veb, uint8_t tc_map) in i40e_config_switch_comp_tc() argument
10922 struct i40e_hw *hw = I40E_VSI_TO_HW(veb->associate_vsi); in i40e_config_switch_comp_tc()
10928 if (veb->enabled_tc == tc_map) in i40e_config_switch_comp_tc()
10939 ret = i40e_aq_config_switch_comp_bw_config(hw, veb->seid, in i40e_config_switch_comp_tc()
10949 ret = i40e_aq_query_switch_comp_ets_config(hw, veb->seid, in i40e_config_switch_comp_tc()
10958 ret = i40e_aq_query_switch_comp_bw_config(hw, veb->seid, in i40e_config_switch_comp_tc()
10968 veb->bw_info.bw_limit = rte_le_to_cpu_16(ets_query.port_bw_limit); in i40e_config_switch_comp_tc()
10969 veb->bw_info.bw_max = ets_query.tc_bw_max; in i40e_config_switch_comp_tc()
10970 PMD_DRV_LOG(DEBUG, "switch_comp bw limit:%u", veb->bw_info.bw_limit); in i40e_config_switch_comp_tc()
10971 PMD_DRV_LOG(DEBUG, "switch_comp max_bw:%u", veb->bw_info.bw_max); in i40e_config_switch_comp_tc()
10976 veb->bw_info.bw_ets_share_credits[i] = in i40e_config_switch_comp_tc()
10978 veb->bw_info.bw_ets_credits[i] = in i40e_config_switch_comp_tc()
10981 veb->bw_info.bw_ets_max[i] = in i40e_config_switch_comp_tc()
10985 veb->bw_info.bw_ets_share_credits[i]); in i40e_config_switch_comp_tc()
10987 veb->bw_info.bw_ets_credits[i]); in i40e_config_switch_comp_tc()
10989 veb->bw_info.bw_ets_max[i]); in i40e_config_switch_comp_tc()
10992 veb->enabled_tc = tc_map; in i40e_config_switch_comp_tc()
11147 if (main_vsi->veb) { in i40e_dcb_hw_configure()
11148 ret = i40e_config_switch_comp_tc(main_vsi->veb, tc_map); in i40e_dcb_hw_configure()
11152 main_vsi->veb->seid); in i40e_dcb_hw_configure()
11156 if (main_vsi->veb) { in i40e_dcb_hw_configure()
11157 TAILQ_FOREACH(vsi_list, &main_vsi->veb->head, list) { in i40e_dcb_hw_configure()