Lines Matching refs:vfid

51 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid);
327 int vfid, struct qed_ptt *p_ptt) in qed_iov_post_vf_bulletin() argument
334 p_vf = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_post_vf_bulletin()
676 int vfid, bool b_fail_malicious) in _qed_iov_pf_sanity_check() argument
684 if (!qed_iov_is_valid_vfid(p_hwfn, vfid, true, b_fail_malicious)) in _qed_iov_pf_sanity_check()
690 static bool qed_iov_pf_sanity_check(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_pf_sanity_check() argument
692 return _qed_iov_pf_sanity_check(p_hwfn, vfid, true); in qed_iov_pf_sanity_check()
955 u16 vfid, in qed_iov_set_link() argument
961 vfid, in qed_iov_set_link()
1348 static void qed_iov_clean_vf(struct qed_hwfn *p_hwfn, u8 vfid) in qed_iov_clean_vf() argument
1352 vf_info = qed_iov_get_public_vf_info(p_hwfn, vfid, false); in qed_iov_clean_vf()
2144 vf_params.vfid = vf->relative_vf_id; in qed_iov_vf_mbx_start_rxq()
2480 vf_params.vfid = vf->relative_vf_id; in qed_iov_vf_mbx_start_txq()
2994 u8 vfid, in qed_iov_pre_update_vport() argument
3009 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_pre_update_vport()
3246 int vfid, struct qed_filter_ucast *params) in qed_iov_chk_ucast() argument
3250 vf = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_chk_ucast()
3260 qed_iov_bulletin_set_mac(hwfn, vf->mac, vfid); in qed_iov_chk_ucast()
3676 u16 vfid = p_vf->abs_vf_id; in qed_iov_execute_vf_flr_cleanup() local
3679 "VF[%d] - Handling FLR\n", vfid); in qed_iov_execute_vf_flr_cleanup()
3691 rc = qed_final_cleanup(p_hwfn, p_ptt, vfid, true); in qed_iov_execute_vf_flr_cleanup()
3693 DP_ERR(p_hwfn, "Failed handle FLR of VF[%d]\n", vfid); in qed_iov_execute_vf_flr_cleanup()
3702 USTORM_VF_PF_CHANNEL_READY_OFFSET(vfid), 1); in qed_iov_execute_vf_flr_cleanup()
3712 vfid); in qed_iov_execute_vf_flr_cleanup()
3719 ack_vfs[vfid / 32] |= BIT((vfid % 32)); in qed_iov_execute_vf_flr_cleanup()
3769 u8 vfid; in qed_iov_mark_vf_flr() local
3775 vfid = p_vf->abs_vf_id; in qed_iov_mark_vf_flr()
3776 if (BIT((vfid % 32)) & p_disabled_vfs[vfid / 32]) { in qed_iov_mark_vf_flr()
3782 vfid, rel_vf_id); in qed_iov_mark_vf_flr()
3800 u16 vfid, in qed_iov_get_link() argument
3806 vfid, in qed_iov_get_link()
3858 struct qed_ptt *p_ptt, int vfid) in qed_iov_process_mbx_req() argument
3863 p_vf = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_process_mbx_req()
4093 int vfid) in qed_iov_copy_vf_msg() argument
4098 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_copy_vf_msg()
4111 "Failed to copy message from VF 0x%02x\n", vfid); in qed_iov_copy_vf_msg()
4120 u8 *mac, int vfid) in qed_iov_bulletin_set_forced_mac() argument
4125 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_forced_mac()
4128 "Can not set forced MAC, invalid vfid [%d]\n", vfid); in qed_iov_bulletin_set_forced_mac()
4134 "Can't set forced MAC to malicious VF [%d]\n", vfid); in qed_iov_bulletin_set_forced_mac()
4157 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid) in qed_iov_bulletin_set_mac() argument
4162 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_mac()
4165 vfid); in qed_iov_bulletin_set_mac()
4171 vfid); in qed_iov_bulletin_set_mac()
4193 u16 pvid, int vfid) in qed_iov_bulletin_set_forced_vlan() argument
4198 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_bulletin_set_forced_vlan()
4201 "Can not set forced MAC, invalid vfid [%d]\n", vfid); in qed_iov_bulletin_set_forced_vlan()
4207 "Can't set forced vlan to malicious VF [%d]\n", vfid); in qed_iov_bulletin_set_forced_vlan()
4222 int vfid, u16 vxlan_port, u16 geneve_port) in qed_iov_bulletin_set_udp_ports() argument
4226 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_udp_ports()
4229 "Can not set udp ports, invalid vfid [%d]\n", vfid); in qed_iov_bulletin_set_udp_ports()
4236 vfid); in qed_iov_bulletin_set_udp_ports()
4244 static bool qed_iov_vf_has_vport_instance(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_vf_has_vport_instance() argument
4248 p_vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_vf_has_vport_instance()
4255 static bool qed_iov_is_vf_stopped(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_is_vf_stopped() argument
4259 p_vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_is_vf_stopped()
4266 static bool qed_iov_spoofchk_get(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_spoofchk_get() argument
4270 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_spoofchk_get()
4277 static int qed_iov_spoofchk_set(struct qed_hwfn *p_hwfn, int vfid, bool val) in qed_iov_spoofchk_set() argument
4282 if (!qed_iov_pf_sanity_check(p_hwfn, vfid)) { in qed_iov_spoofchk_set()
4288 vf = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_spoofchk_set()
4292 if (!qed_iov_vf_has_vport_instance(p_hwfn, vfid)) { in qed_iov_spoofchk_set()
4351 struct qed_ptt *p_ptt, int vfid, int val) in qed_iov_configure_tx_rate() argument
4358 vf = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_configure_tx_rate()
4373 qed_iov_configure_min_tx_rate(struct qed_dev *cdev, int vfid, u32 rate) in qed_iov_configure_min_tx_rate() argument
4382 if (!qed_iov_pf_sanity_check(p_hwfn, vfid)) { in qed_iov_configure_min_tx_rate()
4389 vf = qed_iov_get_vf_info(QED_LEADING_HWFN(cdev), (u16)vfid, true); in qed_iov_configure_min_tx_rate()
4395 static int qed_iov_get_vf_min_rate(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_get_vf_min_rate() argument
4400 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_get_vf_min_rate()
4495 u16 vfid, in qed_sriov_enable_qid_config() argument
4504 base = FEAT_NUM(hwfn, QED_PF_L2_QUE) + vfid * params->num_queues; in qed_sriov_enable_qid_config()
4506 params->rel_vf_id = vfid; in qed_sriov_enable_qid_config()
4600 static int qed_sriov_pf_set_mac(struct qed_dev *cdev, u8 *mac, int vfid) in qed_sriov_pf_set_mac() argument
4610 if (!qed_iov_is_valid_vfid(&cdev->hwfns[0], vfid, true, true)) { in qed_sriov_pf_set_mac()
4612 "Cannot set VF[%d] MAC (VF is not active)\n", vfid); in qed_sriov_pf_set_mac()
4620 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_mac()
4636 static int qed_sriov_pf_set_vlan(struct qed_dev *cdev, u16 vid, int vfid) in qed_sriov_pf_set_vlan() argument
4646 if (!qed_iov_is_valid_vfid(&cdev->hwfns[0], vfid, true, true)) { in qed_sriov_pf_set_vlan()
4648 "Cannot set VF[%d] MAC (VF is not active)\n", vfid); in qed_sriov_pf_set_vlan()
4656 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_vlan()
4816 static int qed_spoof_configure(struct qed_dev *cdev, int vfid, bool val) in qed_spoof_configure() argument
4823 rc = qed_iov_spoofchk_set(p_hwfn, vfid, val); in qed_spoof_configure()
4831 static int qed_configure_max_vf_rate(struct qed_dev *cdev, int vfid, int rate) in qed_configure_max_vf_rate() argument
4839 if (!qed_iov_pf_sanity_check(p_hwfn, vfid)) { in qed_configure_max_vf_rate()
4845 vf = qed_iov_get_public_vf_info(p_hwfn, vfid, true); in qed_configure_max_vf_rate()
4856 int vfid, u32 min_rate, u32 max_rate) in qed_set_vf_rate() argument
4861 rc_max = qed_configure_max_vf_rate(cdev, vfid, max_rate); in qed_set_vf_rate()
4864 rc_min = qed_iov_configure_min_tx_rate(cdev, vfid, min_rate); in qed_set_vf_rate()
4872 static int qed_set_vf_trust(struct qed_dev *cdev, int vfid, bool trust) in qed_set_vf_trust() argument
4880 if (!qed_iov_pf_sanity_check(hwfn, vfid)) { in qed_set_vf_trust()
4886 vf = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_set_vf_trust()
4956 int vfid) in qed_set_bulletin_mac() argument
4959 qed_iov_bulletin_set_mac(hwfn, info->mac, vfid); in qed_set_bulletin_mac()
4961 qed_iov_bulletin_set_forced_mac(hwfn, info->forced_mac, vfid); in qed_set_bulletin_mac()