/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_switch.h | 126 u16 vsi_handle; member 178 u16 vsi_handle; member 188 u16 vsi_handle; member 325 ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 328 ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 331 ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 333 bool ice_is_vsi_valid(struct ice_hw *hw, u16 vsi_handle); 334 struct ice_vsi_ctx *ice_get_vsi_ctx(struct ice_hw *hw, u16 vsi_handle); 361 bool ice_vlan_fltr_exist(struct ice_hw *hw, u16 vlan_id, u16 vsi_handle); 364 int ice_cfg_rdma_fltr(struct ice_hw *hw, u16 vsi_handle, bool enable); [all …]
|
H A D | ice_switch.c | 1653 bool ice_is_vsi_valid(struct ice_hw *hw, u16 vsi_handle) in ice_is_vsi_valid() argument 1655 return vsi_handle < ICE_MAX_VSI && hw->vsi_ctx[vsi_handle]; in ice_is_vsi_valid() 1666 u16 ice_get_hw_vsi_num(struct ice_hw *hw, u16 vsi_handle) in ice_get_hw_vsi_num() argument 1668 return hw->vsi_ctx[vsi_handle]->vsi_num; in ice_get_hw_vsi_num() 1678 struct ice_vsi_ctx *ice_get_vsi_ctx(struct ice_hw *hw, u16 vsi_handle) in ice_get_vsi_ctx() argument 1680 return (vsi_handle >= ICE_MAX_VSI) ? NULL : hw->vsi_ctx[vsi_handle]; in ice_get_vsi_ctx() 1692 ice_save_vsi_ctx(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi) in ice_save_vsi_ctx() argument 1694 hw->vsi_ctx[vsi_handle] = vsi; in ice_save_vsi_ctx() 1702 static void ice_clear_vsi_q_ctx(struct ice_hw *hw, u16 vsi_handle) in ice_clear_vsi_q_ctx() argument 1704 struct ice_vsi_ctx *vsi = ice_get_vsi_ctx(hw, vsi_handle); in ice_clear_vsi_q_ctx() [all …]
|
H A D | ice_flow.c | 1277 u8 segs_cnt, bool symm, u16 vsi_handle, u32 conds) in ice_flow_find_prof_conds() argument 1289 ice_is_vsi_valid(hw, vsi_handle) && in ice_flow_find_prof_conds() 1290 !test_bit(vsi_handle, p->vsis)) in ice_flow_find_prof_conds() 1499 struct ice_flow_prof *prof, u16 vsi_handle) in ice_flow_assoc_prof() argument 1503 if (!test_bit(vsi_handle, prof->vsis)) { in ice_flow_assoc_prof() 1506 vsi_handle), in ice_flow_assoc_prof() 1509 set_bit(vsi_handle, prof->vsis); in ice_flow_assoc_prof() 1530 struct ice_flow_prof *prof, u16 vsi_handle) in ice_flow_disassoc_prof() argument 1534 if (test_bit(vsi_handle, prof->vsis)) { in ice_flow_disassoc_prof() 1537 vsi_handle), in ice_flow_disassoc_prof() [all …]
|
H A D | ice_sched.h | 63 u16 vsi_handle; member 128 ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc, 131 ice_sched_cfg_vsi(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 maxqs, 133 int ice_rm_vsi_lan_cfg(struct ice_port_info *pi, u16 vsi_handle); 134 int ice_rm_vsi_rdma_cfg(struct ice_port_info *pi, u16 vsi_handle); 141 ice_move_vsi_to_agg(struct ice_port_info *pi, u32 agg_id, u16 vsi_handle, 144 ice_cfg_q_bw_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc, 147 ice_cfg_q_bw_dflt_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc, 150 ice_cfg_vsi_bw_lmt_per_tc(struct ice_port_info *pi, u16 vsi_handle, u8 tc, 153 ice_cfg_vsi_bw_dflt_lmt_per_tc(struct ice_port_info *pi, u16 vsi_handle, u8 tc, [all …]
|
H A D | ice_sched.c | 554 ice_alloc_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs) in ice_alloc_lan_q_ctx() argument 560 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); in ice_alloc_lan_q_ctx() 611 ice_alloc_rdma_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs) in ice_alloc_rdma_q_ctx() argument 616 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); in ice_alloc_rdma_q_ctx() 1502 ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc, in ice_sched_get_free_qparent() argument 1514 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle); in ice_sched_get_free_qparent() 1554 u16 vsi_handle) in ice_sched_get_vsi_node() argument 1564 if (node->vsi_handle == vsi_handle) in ice_sched_get_vsi_node() 1644 ice_sched_add_vsi_child_nodes(struct ice_port_info *pi, u16 vsi_handle, in ice_sched_add_vsi_child_nodes() argument 1656 parent = ice_sched_get_vsi_node(pi, tc_node, vsi_handle); in ice_sched_add_vsi_child_nodes() [all …]
|
H A D | ice_fltr.c | 105 ice_fltr_clear_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask, in ice_fltr_clear_vsi_promisc() argument 111 result = ice_clear_vsi_promisc(hw, vsi_handle, promisc_mask, vid); in ice_fltr_clear_vsi_promisc() 115 ice_get_hw_vsi_num(hw, vsi_handle), vid, result); in ice_fltr_clear_vsi_promisc() 128 ice_fltr_set_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask, in ice_fltr_set_vsi_promisc() argument 134 result = ice_set_vsi_promisc(hw, vsi_handle, promisc_mask, vid); in ice_fltr_set_vsi_promisc() 138 ice_get_hw_vsi_num(hw, vsi_handle), vid, result); in ice_fltr_set_vsi_promisc() 235 info.vsi_handle = vsi->idx; in ice_fltr_add_mac_to_list() 259 info.vsi_handle = vsi->idx; in ice_fltr_add_vlan_to_list() 286 info.vsi_handle = vsi->idx; in ice_fltr_add_eth_to_list()
|
H A D | ice_flow.h | 412 u16 vsi_handle; member 463 int ice_flow_rem_vsi_prof(struct ice_hw *hw, u16 vsi_handle, u64 prof_id); 464 void ice_rem_vsi_rss_list(struct ice_hw *hw, u16 vsi_handle); 465 int ice_replay_rss_cfg(struct ice_hw *hw, u16 vsi_handle); 469 int ice_rem_vsi_rss_cfg(struct ice_hw *hw, u16 vsi_handle); 472 int ice_rem_rss_cfg(struct ice_hw *hw, u16 vsi_handle, 474 u64 ice_get_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u32 hdrs, bool *symm);
|
H A D | ice_common.h | 86 ice_aq_get_rss_key(struct ice_hw *hw, u16 vsi_handle, 89 ice_aq_set_rss_key(struct ice_hw *hw, u16 vsi_handle, 203 ice_cfg_vsi_rdma(struct ice_port_info *pi, u16 vsi_handle, u16 tc_bitmap, 206 ice_ena_vsi_rdma_qset(struct ice_port_info *pi, u16 vsi_handle, u8 tc, 212 ice_dis_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u8 num_queues, 217 ice_cfg_vsi_lan(struct ice_port_info *pi, u16 vsi_handle, u8 tc_bitmap, 220 ice_ena_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 q_handle, 227 int ice_replay_vsi(struct ice_hw *hw, u16 vsi_handle); 230 ice_get_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 q_handle);
|
H A D | ice_fltr.h | 17 ice_fltr_clear_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask, 20 ice_fltr_set_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask,
|
H A D | ice_common.c | 4183 u16 opcode, vsi_id, vsi_handle = params->vsi_handle, glob_lut_idx = 0; in __ice_aq_get_set_rss_lut() local 4192 if (!lut || !ice_is_vsi_valid(hw, vsi_handle)) in __ice_aq_get_set_rss_lut() 4207 vsi_id = ice_get_hw_vsi_num(hw, vsi_handle); in __ice_aq_get_set_rss_lut() 4285 ice_aq_get_rss_key(struct ice_hw *hw, u16 vsi_handle, in ice_aq_get_rss_key() argument 4288 if (!ice_is_vsi_valid(hw, vsi_handle) || !key) in ice_aq_get_rss_key() 4291 return __ice_aq_get_set_rss_key(hw, ice_get_hw_vsi_num(hw, vsi_handle), in ice_aq_get_rss_key() 4304 ice_aq_set_rss_key(struct ice_hw *hw, u16 vsi_handle, in ice_aq_set_rss_key() argument 4307 if (!ice_is_vsi_valid(hw, vsi_handle) || !keys) in ice_aq_set_rss_key() 4310 return __ice_aq_get_set_rss_key(hw, ice_get_hw_vsi_num(hw, vsi_handle), in ice_aq_set_rss_key() 4767 ice_get_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 q_handle) in ice_get_lan_q_ctx() argument [all …]
|
H A D | ice_tc_lib.c | 801 rule_info.sw_act.vsi_handle = fltr->dest_vsi->idx; in ice_eswitch_add_tc_fltr() 832 rule_info.sw_act.vsi_handle = vsi->idx; in ice_eswitch_add_tc_fltr() 859 fltr->dest_vsi_handle = rule_added.vsi_handle; in ice_eswitch_add_tc_fltr() 1041 rule_info.sw_act.vsi_handle = dest_vsi->idx; in ice_add_tc_flower_adv_fltr() 1046 rule_info.sw_act.vsi_handle, lkups_cnt); in ice_add_tc_flower_adv_fltr() 1051 rule_info.sw_act.vsi_handle = dest_vsi->idx; in ice_add_tc_flower_adv_fltr() 1085 tc_fltr->dest_vsi_handle = rule_added.vsi_handle; in ice_add_tc_flower_adv_fltr() 1105 rule_added.rule_id, rule_added.vsi_handle); in ice_add_tc_flower_adv_fltr() 1944 rule_rem.vsi_handle = fltr->dest_vsi_handle; in ice_del_tc_fltr()
|
H A D | ice_eswitch_br.c | 73 rule_info->sw_act.vsi_handle = vf_vsi_idx; in ice_eswitch_br_ingress_rule_setup() 83 rule_info->sw_act.vsi_handle = pf_vsi_idx; in ice_eswitch_br_egress_rule_setup() 208 rule_info.sw_act.vsi_handle = vsi_idx; in ice_eswitch_br_guard_rule_create()
|
H A D | ice_type.h | 575 u16 vsi_handle; member 1111 u16 vsi_handle; /* software VSI handle */ member
|
H A D | ice_main.c | 7961 params.vsi_handle = vsi->idx; in ice_set_rss_lut() 8014 params.vsi_handle = vsi->idx; in ice_get_rss_lut() 8853 rule.vsi_handle = fltr->dest_vsi_handle; in ice_rem_all_chnl_fltrs()
|
/linux/drivers/net/ethernet/intel/ice/devlink/ |
H A D | devlink.c | 760 } else if (node->vsi_handle && in ice_traverse_tx_tree() 761 pf->vsi[node->vsi_handle]->type == ICE_VSI_VF && in ice_traverse_tx_tree() 762 pf->vsi[node->vsi_handle]->vf) { in ice_traverse_tx_tree() 763 vf = pf->vsi[node->vsi_handle]->vf; in ice_traverse_tx_tree() 770 } else if (node->vsi_handle && in ice_traverse_tx_tree() 771 pf->vsi[node->vsi_handle]->type == ICE_VSI_SF && in ice_traverse_tx_tree() 772 pf->vsi[node->vsi_handle]->sf) { in ice_traverse_tx_tree() 773 sf = pf->vsi[node->vsi_handle]->sf; in ice_traverse_tx_tree()
|