Lines Matching refs:seid
367 vsi->seid, txqueue, tx_ring->next_to_clean, in i40e_tx_timeout()
1468 i40e_aq_remove_macvlan(&pf->hw, vsi->seid, &element, 1, NULL); in i40e_rm_default_mac_filter()
1476 i40e_aq_remove_macvlan(&pf->hw, vsi->seid, &element, 1, NULL); in i40e_rm_default_mac_filter()
2245 aq_ret = i40e_aq_remove_macvlan_v2(hw, vsi->seid, list, num_del, NULL, in i40e_aqc_del_filters()
2280 i40e_aq_add_macvlan_v2(hw, vsi->seid, list, num_add, NULL, &aq_status); in i40e_aqc_add_filters()
2327 vsi->seid, in i40e_aqc_broadcast_filter()
2332 vsi->seid, in i40e_aqc_broadcast_filter()
2374 vsi->seid, in i40e_set_promiscuous()
2378 vsi->seid, in i40e_set_promiscuous()
2389 vsi->seid, in i40e_set_promiscuous()
2400 vsi->seid, in i40e_set_promiscuous()
2467 snprintf(vsi_name, sizeof(vsi_name) - 1, "vsi %d", vsi->seid); in i40e_sync_vsi_filters()
2697 vsi->seid, in i40e_sync_vsi_filters()
2870 ctxt.seid = vsi->seid; in i40e_vlan_stripping_enable()
2905 ctxt.seid = vsi->seid; in i40e_vlan_stripping_disable()
3137 ctxt.seid = vsi->seid; in i40e_vsi_add_pvid()
4586 int i40e_control_wait_tx_q(int seid, struct i40e_pf *pf, int pf_q, in i40e_control_wait_tx_q() argument
4598 seid, (is_xdp ? "XDP " : ""), pf_q, in i40e_control_wait_tx_q()
4616 ret = i40e_control_wait_tx_q(vsi->seid, pf, in i40e_vsi_enable_tx()
4625 ret = i40e_control_wait_tx_q(vsi->seid, pf, in i40e_vsi_enable_tx()
4739 vsi->seid, pf_q); in i40e_vsi_enable_rx()
4788 vsi->seid, pf_q); in i40e_vsi_stop_rings()
5166 vsi->seid, pf_q); in i40e_vsi_wait_queues_disabled()
5179 vsi->seid, pf_q); in i40e_vsi_wait_queues_disabled()
5188 vsi->seid, pf_q); in i40e_vsi_wait_queues_disabled()
5411 ret = i40e_aq_query_vsi_bw_config(hw, vsi->seid, &bw_config, NULL); in i40e_vsi_get_bw_info()
5421 ret = i40e_aq_query_vsi_ets_sla_config(hw, vsi->seid, &bw_ets_config, in i40e_vsi_get_bw_info()
5474 ret = i40e_set_bw_limit(vsi, vsi->seid, 0); in i40e_vsi_configure_bw_alloc()
5478 vsi->seid); in i40e_vsi_configure_bw_alloc()
5486 ret = i40e_aq_config_vsi_tc_bw(&pf->hw, vsi->seid, &bw_data, NULL); in i40e_vsi_configure_bw_alloc()
5592 ctxt.seid = vsi->seid; in i40e_update_adq_vsi_queues()
5666 enabled_tc, vsi->seid); in i40e_vsi_config_tc()
5667 ret = i40e_aq_query_vsi_bw_config(hw, vsi->seid, in i40e_vsi_config_tc()
5693 enabled_tc, vsi->seid); in i40e_vsi_config_tc()
5699 ctxt.seid = vsi->seid; in i40e_vsi_config_tc()
5796 int i40e_set_bw_limit(struct i40e_vsi *vsi, u16 seid, u64 max_tx_rate) in i40e_set_bw_limit() argument
5807 max_tx_rate, seid); in i40e_set_bw_limit()
5819 ret = i40e_aq_config_vsi_bw_limit(&pf->hw, seid, credits, in i40e_set_bw_limit()
5824 max_tx_rate, seid, i40e_stat_str(&pf->hw, ret), in i40e_set_bw_limit()
5876 ret = i40e_set_bw_limit(vsi, ch->seid, 0); in i40e_remove_queue_channels()
5880 ch->seid); in i40e_remove_queue_channels()
5885 if (cfilter->seid != ch->seid) in i40e_remove_queue_channels()
5906 ret = i40e_aq_delete_element(&vsi->back->hw, ch->seid, in i40e_remove_queue_channels()
5911 ch->seid, p_vsi->seid); in i40e_remove_queue_channels()
6144 ch->seid = ctxt.seid; in i40e_add_channel()
6173 ret = i40e_aq_config_vsi_tc_bw(&vsi->back->hw, ch->seid, in i40e_channel_config_bw()
6178 vsi->back->hw.aq.asq_last_status, ch->seid); in i40e_channel_config_bw()
6216 ch->enabled_tc, ch->seid); in i40e_channel_config_tx_ring()
6279 ch->seid); in i40e_setup_hw_channel()
6287 ch->seid, ch->vsi_number, ch->stat_counter_idx, in i40e_setup_hw_channel()
6306 u16 seid; in i40e_setup_channel() local
6318 seid = pf->vsi[pf->lan_vsi]->uplink_seid; in i40e_setup_channel()
6321 ret = i40e_setup_hw_channel(pf, vsi, ch, seid, vsi_type); in i40e_setup_channel()
6466 ch->seid, ch->num_queue_pairs); in i40e_create_queue_channel()
6472 if (i40e_set_bw_limit(vsi, ch->seid, ch->max_tx_rate)) in i40e_create_queue_channel()
6480 ch->seid); in i40e_create_queue_channel()
6505 vsi->tc_seid_map[0] = vsi->seid; in i40e_configure_queue_channels()
6536 vsi->tc_seid_map[i] = ch->seid; in i40e_configure_queue_channels()
6576 ret = i40e_aq_config_switch_comp_bw_config(&pf->hw, veb->seid, in i40e_veb_config_tc()
6626 pf->veb[v]->seid); in i40e_dcb_reconfigure()
6648 pf->vsi[v]->seid); in i40e_dcb_reconfigure()
7518 static i40e_status i40e_del_macvlan_filter(struct i40e_hw *hw, u16 seid, in i40e_del_macvlan_filter() argument
7528 status = i40e_aq_remove_macvlan(hw, seid, &element, 1, NULL); in i40e_del_macvlan_filter()
7544 static i40e_status i40e_add_macvlan_filter(struct i40e_hw *hw, u16 seid, in i40e_add_macvlan_filter() argument
7557 status = i40e_aq_add_macvlan(hw, seid, &element, 1, NULL); in i40e_add_macvlan_filter()
7619 ret = i40e_aq_delete_element(&vsi->back->hw, ch->seid, in i40e_free_macvlan_channels()
7624 ch->seid, parent_vsi->seid); in i40e_free_macvlan_channels()
7682 ret = i40e_add_macvlan_filter(hw, ch->seid, vdev->dev_addr, &aq_err); in i40e_fwd_ring_up()
7737 ctxt.seid = vsi->seid; in i40e_setup_macvlans()
7934 ret = i40e_del_macvlan_filter(hw, ch->seid, in i40e_del_all_macvlans()
7971 ret = i40e_del_macvlan_filter(hw, ch->seid, in i40e_fwd_del()
8085 vsi->seid); in i40e_setup_tc()
8100 vsi->seid, vsi->tc_config.tc_info[0].qcount); in i40e_setup_tc()
8107 ret = i40e_set_bw_limit(vsi, vsi->seid, max_tx_rate); in i40e_setup_tc()
8116 vsi->seid); in i40e_setup_tc()
8239 ret = i40e_aq_add_cloud_filters(&pf->hw, filter->seid, in i40e_add_del_cloud_filter()
8242 ret = i40e_aq_rem_cloud_filters(&pf->hw, filter->seid, in i40e_add_del_cloud_filter()
8252 add ? "Added" : "Deleted", filter->seid); in i40e_add_del_cloud_filter()
8347 ret = i40e_aq_add_cloud_filters_bb(&pf->hw, filter->seid, in i40e_add_del_cloud_filter_big_buf()
8350 ret = i40e_aq_rem_cloud_filters_bb(&pf->hw, filter->seid, in i40e_add_del_cloud_filter_big_buf()
8361 add ? "add" : "delete", filter->seid, in i40e_add_del_cloud_filter_big_buf()
8587 filter->seid = vsi->seid; in i40e_handle_tclass()
8599 if (ch->seid == vsi->tc_seid_map[tc]) in i40e_handle_tclass()
8600 filter->seid = ch->seid; in i40e_handle_tclass()
9731 if (pf->veb[i] && (pf->veb[i]->uplink_seid == veb->seid)) in i40e_veb_link_event()
9736 if (pf->vsi[i] && (pf->vsi[i]->uplink_seid == veb->seid)) in i40e_veb_link_event()
10120 ctxt.seid = pf->main_vsi_seid; in i40e_enable_pf_switch_lb()
10156 ctxt.seid = pf->main_vsi_seid; in i40e_disable_pf_switch_lb()
10262 vsi->uplink_seid = veb->seid; in i40e_reconstitute_veb()
10277 pf->veb[veb_idx]->uplink_seid = veb->seid; in i40e_reconstitute_veb()
10402 pf->vsi[pf->lan_vsi]->seid, 0); in i40e_fdir_sb_setup()
10436 static int i40e_rebuild_cloud_filters(struct i40e_vsi *vsi, u16 seid) in i40e_rebuild_cloud_filters() argument
10446 if (cfilter->seid != seid) in i40e_rebuild_cloud_filters()
10497 ch->seid); in i40e_rebuild_channels()
10506 if (i40e_set_bw_limit(vsi, ch->seid, in i40e_rebuild_channels()
10515 ch->seid); in i40e_rebuild_channels()
10517 ret = i40e_rebuild_cloud_filters(vsi, ch->seid); in i40e_rebuild_channels()
10521 ch->seid); in i40e_rebuild_channels()
10553 pf->vsi[v]->seid = 0; in i40e_prep_for_reset()
10855 ret = i40e_set_bw_limit(vsi, vsi->seid, max_tx_rate); in i40e_rebuild()
10865 vsi->seid); in i40e_rebuild()
10868 ret = i40e_rebuild_cloud_filters(vsi, vsi->seid); in i40e_rebuild()
12976 if (vsi->seid != pf->vsi[pf->lan_vsi]->seid) in i40e_ndo_bridge_setlink()
12981 if (pf->veb[i] && pf->veb[i]->seid == vsi->uplink_seid) in i40e_ndo_bridge_setlink()
13000 veb = i40e_veb_setup(pf, 0, vsi->uplink_seid, vsi->seid, in i40e_ndo_bridge_setlink()
13050 if (vsi->seid != pf->vsi[pf->lan_vsi]->seid) in i40e_ndo_bridge_getlink()
13055 if (pf->veb[i] && pf->veb[i]->seid == vsi->uplink_seid) in i40e_ndo_bridge_getlink()
13288 ret = i40e_control_wait_tx_q(vsi->seid, pf, pf_q, in i40e_queue_pair_toggle_rings()
13293 vsi->seid, pf_q, (enable ? "en" : "dis")); in i40e_queue_pair_toggle_rings()
13302 vsi->seid, pf_q, (enable ? "en" : "dis")); in i40e_queue_pair_toggle_rings()
13315 ret = i40e_control_wait_tx_q(vsi->seid, pf, in i40e_queue_pair_toggle_rings()
13321 vsi->seid, pf_q, (enable ? "en" : "dis")); in i40e_queue_pair_toggle_rings()
13679 i40e_aq_delete_element(&vsi->back->hw, vsi->seid, NULL); in i40e_vsi_delete()
13744 ctxt.seid = pf->main_vsi_seid; in i40e_add_vsi()
13760 vsi->seid = ctxt.seid; in i40e_add_vsi()
13771 ctxt.seid = pf->main_vsi_seid; in i40e_add_vsi()
13794 ctxt.seid = pf->main_vsi_seid; in i40e_add_vsi()
13929 vsi->seid = ctxt.seid; in i40e_add_vsi()
13983 vsi->seid, vsi->uplink_seid); in i40e_vsi_release()
14051 if (pf->veb[i]->seid == uplink_seid) in i40e_vsi_release()
14077 vsi->seid); in i40e_vsi_setup_vectors()
14083 vsi->seid, vsi->base_vector); in i40e_vsi_setup_vectors()
14091 vsi->num_q_vectors, vsi->seid, ret); in i40e_vsi_setup_vectors()
14107 vsi->num_q_vectors, vsi->seid, vsi->base_vector); in i40e_vsi_setup_vectors()
14154 alloc_queue_pairs, vsi->seid, ret); in i40e_vsi_reinit_setup()
14164 pf->vsi[pf->lan_vsi]->seid = pf->main_vsi_seid; in i40e_vsi_reinit_setup()
14186 i40e_aq_delete_element(&pf->hw, vsi->seid, NULL); in i40e_vsi_reinit_setup()
14228 if (pf->veb[i] && pf->veb[i]->seid == uplink_seid) { in i40e_vsi_setup()
14237 if (pf->vsi[i] && pf->vsi[i]->seid == uplink_seid) { in i40e_vsi_setup()
14249 veb = i40e_veb_setup(pf, 0, pf->mac_seid, vsi->seid, in i40e_vsi_setup()
14252 veb = i40e_veb_setup(pf, 0, vsi->uplink_seid, vsi->seid, in i40e_vsi_setup()
14255 if (vsi->seid != pf->vsi[pf->lan_vsi]->seid) { in i40e_vsi_setup()
14271 if (pf->veb[i] && pf->veb[i]->seid == vsi->uplink_seid) in i40e_vsi_setup()
14280 uplink_seid = veb->seid; in i40e_vsi_setup()
14305 alloc_queue_pairs, vsi->seid, ret); in i40e_vsi_setup()
14372 i40e_aq_delete_element(&pf->hw, vsi->seid, NULL); in i40e_vsi_setup()
14395 ret = i40e_aq_query_switch_comp_bw_config(hw, veb->seid, in i40e_veb_get_bw_info()
14405 ret = i40e_aq_query_switch_comp_ets_config(hw, veb->seid, in i40e_veb_get_bw_info()
14488 u16 branch_seid = branch->seid; in i40e_switch_branch_release()
14496 if (pf->veb[i]->uplink_seid == branch->seid) in i40e_switch_branch_release()
14558 if (pf->vsi[i] && pf->vsi[i]->uplink_seid == veb->seid) { in i40e_veb_release()
14566 veb->seid, n); in i40e_veb_release()
14584 i40e_aq_delete_element(&pf->hw, veb->seid, NULL); in i40e_veb_release()
14599 ret = i40e_aq_add_veb(&pf->hw, veb->uplink_seid, vsi->seid, in i40e_add_veb()
14601 &veb->seid, enable_stats, NULL); in i40e_add_veb()
14613 ret = i40e_aq_get_veb_parameters(&pf->hw, veb->seid, NULL, NULL, in i40e_add_veb()
14628 i40e_aq_delete_element(&pf->hw, veb->seid, NULL); in i40e_add_veb()
14632 vsi->uplink_seid = veb->seid; in i40e_add_veb()
14674 if (pf->vsi[vsi_idx] && pf->vsi[vsi_idx]->seid == vsi_seid) in i40e_veb_setup()
14685 pf->veb[veb_idx]->seid == uplink_seid) { in i40e_veb_setup()
14738 u16 seid = le16_to_cpu(ele->seid); in i40e_setup_pf_switch_element() local
14743 element_type, seid, uplink_seid, downlink_seid); in i40e_setup_pf_switch_element()
14747 pf->mac_seid = seid; in i40e_setup_pf_switch_element()
14758 if (pf->veb[v] && (pf->veb[v]->seid == seid)) { in i40e_setup_pf_switch_element()
14773 pf->veb[pf->lan_veb]->seid = seid; in i40e_setup_pf_switch_element()
14786 pf->main_vsi_seid = seid; in i40e_setup_pf_switch_element()
14802 element_type, seid); in i40e_setup_pf_switch_element()
14927 uplink_seid = pf->veb[pf->lan_veb]->seid; in i40e_setup_pf_switch()
14945 pf->vsi[pf->lan_vsi]->seid = pf->main_vsi_seid; in i40e_setup_pf_switch()