Home
last modified time | relevance | path

Searched refs:vsi_handle (Results 1 – 12 of 12) sorted by relevance

/drivers/net/ethernet/intel/ice/
Dice_switch.c244 bool ice_is_vsi_valid(struct ice_hw *hw, u16 vsi_handle) in ice_is_vsi_valid() argument
246 return vsi_handle < ICE_MAX_VSI && hw->vsi_ctx[vsi_handle]; in ice_is_vsi_valid()
257 u16 ice_get_hw_vsi_num(struct ice_hw *hw, u16 vsi_handle) in ice_get_hw_vsi_num() argument
259 return hw->vsi_ctx[vsi_handle]->vsi_num; in ice_get_hw_vsi_num()
269 struct ice_vsi_ctx *ice_get_vsi_ctx(struct ice_hw *hw, u16 vsi_handle) in ice_get_vsi_ctx() argument
271 return (vsi_handle >= ICE_MAX_VSI) ? NULL : hw->vsi_ctx[vsi_handle]; in ice_get_vsi_ctx()
283 ice_save_vsi_ctx(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi) in ice_save_vsi_ctx() argument
285 hw->vsi_ctx[vsi_handle] = vsi; in ice_save_vsi_ctx()
293 static void ice_clear_vsi_q_ctx(struct ice_hw *hw, u16 vsi_handle) in ice_clear_vsi_q_ctx() argument
298 vsi = ice_get_vsi_ctx(hw, vsi_handle); in ice_clear_vsi_q_ctx()
[all …]
Dice_switch.h112 u16 vsi_handle; member
199 ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
202 ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
205 ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
207 bool ice_is_vsi_valid(struct ice_hw *hw, u16 vsi_handle);
208 struct ice_vsi_ctx *ice_get_vsi_ctx(struct ice_hw *hw, u16 vsi_handle);
229 ice_cfg_rdma_fltr(struct ice_hw *hw, u16 vsi_handle, bool enable);
230 void ice_remove_vsi_fltr(struct ice_hw *hw, u16 vsi_handle);
237 ice_cfg_dflt_vsi(struct ice_hw *hw, u16 vsi_handle, bool set, u8 direction);
239 ice_set_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask,
[all …]
Dice_flow.c1255 u8 segs_cnt, u16 vsi_handle, u32 conds) in ice_flow_find_prof_conds() argument
1267 ice_is_vsi_valid(hw, vsi_handle) && in ice_flow_find_prof_conds()
1268 !test_bit(vsi_handle, p->vsis)) in ice_flow_find_prof_conds()
1479 struct ice_flow_prof *prof, u16 vsi_handle) in ice_flow_assoc_prof() argument
1483 if (!test_bit(vsi_handle, prof->vsis)) { in ice_flow_assoc_prof()
1486 vsi_handle), in ice_flow_assoc_prof()
1489 set_bit(vsi_handle, prof->vsis); in ice_flow_assoc_prof()
1510 struct ice_flow_prof *prof, u16 vsi_handle) in ice_flow_disassoc_prof() argument
1514 if (test_bit(vsi_handle, prof->vsis)) { in ice_flow_disassoc_prof()
1517 vsi_handle), in ice_flow_disassoc_prof()
[all …]
Dice_sched.h50 u16 vsi_handle; member
86 ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
89 ice_sched_cfg_vsi(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 maxqs,
91 enum ice_status ice_rm_vsi_lan_cfg(struct ice_port_info *pi, u16 vsi_handle);
92 enum ice_status ice_rm_vsi_rdma_cfg(struct ice_port_info *pi, u16 vsi_handle);
99 ice_move_vsi_to_agg(struct ice_port_info *pi, u32 agg_id, u16 vsi_handle,
102 ice_cfg_q_bw_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
105 ice_cfg_q_bw_dflt_lmt(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
110 enum ice_status ice_replay_vsi_agg(struct ice_hw *hw, u16 vsi_handle);
Dice_sched.c562 ice_alloc_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs) in ice_alloc_lan_q_ctx() argument
567 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); in ice_alloc_lan_q_ctx()
606 ice_alloc_rdma_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs) in ice_alloc_rdma_q_ctx() argument
611 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); in ice_alloc_rdma_q_ctx()
1483 ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc, in ice_sched_get_free_qparent() argument
1494 vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle); in ice_sched_get_free_qparent()
1528 u16 vsi_handle) in ice_sched_get_vsi_node() argument
1538 if (node->vsi_handle == vsi_handle) in ice_sched_get_vsi_node()
1618 ice_sched_add_vsi_child_nodes(struct ice_port_info *pi, u16 vsi_handle, in ice_sched_add_vsi_child_nodes() argument
1631 parent = ice_sched_get_vsi_node(pi, tc_node, vsi_handle); in ice_sched_add_vsi_child_nodes()
[all …]
Dice_common.h63 ice_aq_get_rss_key(struct ice_hw *hw, u16 vsi_handle,
66 ice_aq_set_rss_key(struct ice_hw *hw, u16 vsi_handle,
154 ice_cfg_vsi_rdma(struct ice_port_info *pi, u16 vsi_handle, u16 tc_bitmap,
157 ice_ena_vsi_rdma_qset(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
163 ice_dis_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u8 num_queues,
168 ice_cfg_vsi_lan(struct ice_port_info *pi, u16 vsi_handle, u8 tc_bitmap,
171 ice_ena_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u16 q_handle,
174 enum ice_status ice_replay_vsi(struct ice_hw *hw, u16 vsi_handle);
178 ice_get_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 q_handle);
Dice_flow.h354 u16 vsi_handle; member
404 void ice_rem_vsi_rss_list(struct ice_hw *hw, u16 vsi_handle);
405 enum ice_status ice_replay_rss_cfg(struct ice_hw *hw, u16 vsi_handle);
407 ice_add_avf_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u64 hashed_flds);
408 enum ice_status ice_rem_vsi_rss_cfg(struct ice_hw *hw, u16 vsi_handle);
410 ice_add_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u64 hashed_flds,
413 ice_rem_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u64 hashed_flds,
415 u64 ice_get_rss_cfg(struct ice_hw *hw, u16 vsi_handle, u32 hdrs);
Dice_common.c3485 u16 flags = 0, vsi_id, lut_type, lut_size, glob_lut_idx, vsi_handle; in __ice_aq_get_set_rss_lut() local
3494 vsi_handle = params->vsi_handle; in __ice_aq_get_set_rss_lut()
3497 if (!ice_is_vsi_valid(hw, vsi_handle) || !lut) in __ice_aq_get_set_rss_lut()
3503 vsi_id = ice_get_hw_vsi_num(hw, vsi_handle); in __ice_aq_get_set_rss_lut()
3644 ice_aq_get_rss_key(struct ice_hw *hw, u16 vsi_handle, in ice_aq_get_rss_key() argument
3647 if (!ice_is_vsi_valid(hw, vsi_handle) || !key) in ice_aq_get_rss_key()
3650 return __ice_aq_get_set_rss_key(hw, ice_get_hw_vsi_num(hw, vsi_handle), in ice_aq_get_rss_key()
3663 ice_aq_set_rss_key(struct ice_hw *hw, u16 vsi_handle, in ice_aq_set_rss_key() argument
3666 if (!ice_is_vsi_valid(hw, vsi_handle) || !keys) in ice_aq_set_rss_key()
3669 return __ice_aq_get_set_rss_key(hw, ice_get_hw_vsi_num(hw, vsi_handle), in ice_aq_set_rss_key()
[all …]
Dice_fltr.c141 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()
Dice_lib.c1457 u16 vsi_handle = vsi->idx, vsi_num = vsi->vsi_num; in ice_vsi_set_rss_flow_fld() local
1470 status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_IPV4, in ice_vsi_set_rss_flow_fld()
1477 status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_IPV6, in ice_vsi_set_rss_flow_fld()
1484 status = ice_add_rss_cfg(hw, vsi_handle, ICE_HASH_TCP_IPV4, in ice_vsi_set_rss_flow_fld()
1491 status = ice_add_rss_cfg(hw, vsi_handle, ICE_HASH_UDP_IPV4, in ice_vsi_set_rss_flow_fld()
1498 status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_IPV4, in ice_vsi_set_rss_flow_fld()
1505 status = ice_add_rss_cfg(hw, vsi_handle, ICE_HASH_TCP_IPV6, in ice_vsi_set_rss_flow_fld()
1512 status = ice_add_rss_cfg(hw, vsi_handle, ICE_HASH_UDP_IPV6, in ice_vsi_set_rss_flow_fld()
1519 status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_IPV6, in ice_vsi_set_rss_flow_fld()
1525 status = ice_add_rss_cfg(hw, vsi_handle, ICE_FLOW_HASH_ESP_SPI, in ice_vsi_set_rss_flow_fld()
Dice_type.h492 u16 vsi_handle; member
971 u16 vsi_handle; /* software VSI handle */ member
Dice_main.c6788 params.vsi_handle = vsi->idx; in ice_set_rss_lut()
6847 params.vsi_handle = vsi->idx; in ice_get_rss_lut()