/Linux-v5.10/drivers/net/ethernet/intel/ice/ |
D | ice_switch.c | 243 bool ice_is_vsi_valid(struct ice_hw *hw, u16 vsi_handle) in ice_is_vsi_valid() argument 245 return vsi_handle < ICE_MAX_VSI && hw->vsi_ctx[vsi_handle]; in ice_is_vsi_valid() 256 u16 ice_get_hw_vsi_num(struct ice_hw *hw, u16 vsi_handle) in ice_get_hw_vsi_num() argument 258 return hw->vsi_ctx[vsi_handle]->vsi_num; in ice_get_hw_vsi_num() 268 struct ice_vsi_ctx *ice_get_vsi_ctx(struct ice_hw *hw, u16 vsi_handle) in ice_get_vsi_ctx() argument 270 return (vsi_handle >= ICE_MAX_VSI) ? NULL : hw->vsi_ctx[vsi_handle]; in ice_get_vsi_ctx() 282 ice_save_vsi_ctx(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi) in ice_save_vsi_ctx() argument 284 hw->vsi_ctx[vsi_handle] = vsi; in ice_save_vsi_ctx() 292 static void ice_clear_vsi_q_ctx(struct ice_hw *hw, u16 vsi_handle) in ice_clear_vsi_q_ctx() argument 297 vsi = ice_get_vsi_ctx(hw, vsi_handle); in ice_clear_vsi_q_ctx() [all …]
|
D | ice_switch.h | 110 u16 vsi_handle; member 197 ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 200 ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 203 ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 205 bool ice_is_vsi_valid(struct ice_hw *hw, u16 vsi_handle); 206 struct ice_vsi_ctx *ice_get_vsi_ctx(struct ice_hw *hw, u16 vsi_handle); 226 void ice_remove_vsi_fltr(struct ice_hw *hw, u16 vsi_handle); 233 ice_cfg_dflt_vsi(struct ice_hw *hw, u16 vsi_handle, bool set, u8 direction); 235 ice_set_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask, 238 ice_clear_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask, [all …]
|
D | ice_flow.c | 602 u8 segs_cnt, u16 vsi_handle, u32 conds) in ice_flow_find_prof_conds() argument 614 ice_is_vsi_valid(hw, vsi_handle) && in ice_flow_find_prof_conds() 615 !test_bit(vsi_handle, p->vsis)) in ice_flow_find_prof_conds() 818 struct ice_flow_prof *prof, u16 vsi_handle) in ice_flow_assoc_prof() argument 822 if (!test_bit(vsi_handle, prof->vsis)) { in ice_flow_assoc_prof() 825 vsi_handle), in ice_flow_assoc_prof() 828 set_bit(vsi_handle, prof->vsis); in ice_flow_assoc_prof() 850 struct ice_flow_prof *prof, u16 vsi_handle) in ice_flow_disassoc_prof() argument 854 if (test_bit(vsi_handle, prof->vsis)) { in ice_flow_disassoc_prof() 857 vsi_handle), in ice_flow_disassoc_prof() [all …]
|
D | ice_sched.h | 45 u16 vsi_handle; member 75 ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc, 78 ice_sched_cfg_vsi(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 maxqs, 80 enum ice_status ice_rm_vsi_lan_cfg(struct ice_port_info *pi, u16 vsi_handle); 82 ice_cfg_q_bw_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc, 85 ice_cfg_q_bw_dflt_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
|
D | ice_flow.h | 193 u16 vsi_handle; member 243 void ice_rem_vsi_rss_list(struct ice_hw *hw, u16 vsi_handle); 244 enum ice_status ice_replay_rss_cfg(struct ice_hw *hw, u16 vsi_handle); 246 ice_add_avf_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u64 hashed_flds); 247 enum ice_status ice_rem_vsi_rss_cfg(struct ice_hw *hw, u16 vsi_handle); 249 ice_add_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u64 hashed_flds, 251 u64 ice_get_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u32 hdrs);
|
D | ice_common.h | 54 ice_aq_get_rss_lut(struct ice_hw *hw, u16 vsi_handle, u8 lut_type, u8 *lut, 57 ice_aq_set_rss_lut(struct ice_hw *hw, u16 vsi_handle, u8 lut_type, u8 *lut, 60 ice_aq_get_rss_key(struct ice_hw *hw, u16 vsi_handle, 63 ice_aq_set_rss_key(struct ice_hw *hw, u16 vsi_handle, 150 ice_dis_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u8 num_queues, 155 ice_cfg_vsi_lan(struct ice_port_info *pi, u16 vsi_handle, u8 tc_bitmap, 158 ice_ena_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 q_handle, 161 enum ice_status ice_replay_vsi(struct ice_hw *hw, u16 vsi_handle); 165 ice_get_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 q_handle);
|
D | ice_sched.c | 542 ice_alloc_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs) in ice_alloc_lan_q_ctx() argument 547 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); in ice_alloc_lan_q_ctx() 1335 ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc, in ice_sched_get_free_qparent() argument 1346 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle); in ice_sched_get_free_qparent() 1380 u16 vsi_handle) in ice_sched_get_vsi_node() argument 1390 if (node->vsi_handle == vsi_handle) in ice_sched_get_vsi_node() 1438 ice_sched_add_vsi_child_nodes(struct ice_port_info *pi, u16 vsi_handle, in ice_sched_add_vsi_child_nodes() argument 1451 parent = ice_sched_get_vsi_node(hw, tc_node, vsi_handle); in ice_sched_add_vsi_child_nodes() 1542 ice_sched_add_vsi_support_nodes(struct ice_port_info *pi, u16 vsi_handle, in ice_sched_add_vsi_support_nodes() argument 1576 parent->vsi_handle = vsi_handle; in ice_sched_add_vsi_support_nodes() [all …]
|
D | ice_common.c | 3333 ice_aq_get_rss_lut(struct ice_hw *hw, u16 vsi_handle, u8 lut_type, in ice_aq_get_rss_lut() argument 3336 if (!ice_is_vsi_valid(hw, vsi_handle) || !lut) in ice_aq_get_rss_lut() 3339 return __ice_aq_get_set_rss_lut(hw, ice_get_hw_vsi_num(hw, vsi_handle), in ice_aq_get_rss_lut() 3354 ice_aq_set_rss_lut(struct ice_hw *hw, u16 vsi_handle, u8 lut_type, in ice_aq_set_rss_lut() argument 3357 if (!ice_is_vsi_valid(hw, vsi_handle) || !lut) in ice_aq_set_rss_lut() 3360 return __ice_aq_get_set_rss_lut(hw, ice_get_hw_vsi_num(hw, vsi_handle), in ice_aq_set_rss_lut() 3408 ice_aq_get_rss_key(struct ice_hw *hw, u16 vsi_handle, in ice_aq_get_rss_key() argument 3411 if (!ice_is_vsi_valid(hw, vsi_handle) || !key) in ice_aq_get_rss_key() 3414 return __ice_aq_get_set_rss_key(hw, ice_get_hw_vsi_num(hw, vsi_handle), in ice_aq_get_rss_key() 3427 ice_aq_set_rss_key(struct ice_hw *hw, u16 vsi_handle, in ice_aq_set_rss_key() argument [all …]
|
D | ice_fltr.c | 141 info.vsi_handle = vsi->idx; in ice_fltr_add_mac_to_list() 166 info.vsi_handle = vsi->idx; in ice_fltr_add_vlan_to_list() 191 info.vsi_handle = vsi->idx; in ice_fltr_add_eth_to_list()
|
D | ice_lib.c | 1420 u16 vsi_handle = vsi->idx, vsi_num = vsi->vsi_num; in ice_vsi_set_rss_flow_fld() local 1433 status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_IPV4, in ice_vsi_set_rss_flow_fld() 1440 status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_IPV6, in ice_vsi_set_rss_flow_fld() 1447 status = ice_add_rss_cfg(hw, vsi_handle, ICE_HASH_TCP_IPV4, in ice_vsi_set_rss_flow_fld() 1454 status = ice_add_rss_cfg(hw, vsi_handle, ICE_HASH_UDP_IPV4, in ice_vsi_set_rss_flow_fld() 1461 status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_IPV4, in ice_vsi_set_rss_flow_fld() 1468 status = ice_add_rss_cfg(hw, vsi_handle, ICE_HASH_TCP_IPV6, in ice_vsi_set_rss_flow_fld() 1475 status = ice_add_rss_cfg(hw, vsi_handle, ICE_HASH_UDP_IPV6, in ice_vsi_set_rss_flow_fld() 1482 status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_IPV6, in ice_vsi_set_rss_flow_fld()
|
D | ice_type.h | 376 u16 vsi_handle; member
|