Lines Matching refs:vfid

23 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid);
306 int vfid, struct qed_ptt *p_ptt) in qed_iov_post_vf_bulletin() argument
313 p_vf = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_post_vf_bulletin()
658 int vfid, bool b_fail_malicious) in _qed_iov_pf_sanity_check() argument
666 if (!qed_iov_is_valid_vfid(p_hwfn, vfid, true, b_fail_malicious)) in _qed_iov_pf_sanity_check()
672 static bool qed_iov_pf_sanity_check(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_pf_sanity_check() argument
674 return _qed_iov_pf_sanity_check(p_hwfn, vfid, true); in qed_iov_pf_sanity_check()
939 u16 vfid, in qed_iov_set_link() argument
945 vfid, in qed_iov_set_link()
1332 static void qed_iov_clean_vf(struct qed_hwfn *p_hwfn, u8 vfid) in qed_iov_clean_vf() argument
1336 vf_info = qed_iov_get_public_vf_info(p_hwfn, vfid, false); in qed_iov_clean_vf()
2130 vf_params.vfid = vf->relative_vf_id; in qed_iov_vf_mbx_start_rxq()
2466 vf_params.vfid = vf->relative_vf_id; in qed_iov_vf_mbx_start_txq()
2980 u8 vfid, in qed_iov_pre_update_vport() argument
2999 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_pre_update_vport()
3243 int vfid, struct qed_filter_ucast *params) in qed_iov_chk_ucast() argument
3247 vf = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_chk_ucast()
3257 qed_iov_bulletin_set_mac(hwfn, vf->mac, vfid); in qed_iov_chk_ucast()
3697 u16 vfid = p_vf->abs_vf_id; in qed_iov_execute_vf_flr_cleanup() local
3700 "VF[%d] - Handling FLR\n", vfid); in qed_iov_execute_vf_flr_cleanup()
3712 rc = qed_final_cleanup(p_hwfn, p_ptt, vfid, true); in qed_iov_execute_vf_flr_cleanup()
3714 DP_ERR(p_hwfn, "Failed handle FLR of VF[%d]\n", vfid); in qed_iov_execute_vf_flr_cleanup()
3723 USTORM_VF_PF_CHANNEL_READY, vfid), 1); in qed_iov_execute_vf_flr_cleanup()
3733 vfid); in qed_iov_execute_vf_flr_cleanup()
3740 ack_vfs[vfid / 32] |= BIT((vfid % 32)); in qed_iov_execute_vf_flr_cleanup()
3790 u8 vfid; in qed_iov_mark_vf_flr() local
3796 vfid = p_vf->abs_vf_id; in qed_iov_mark_vf_flr()
3797 if (BIT((vfid % 32)) & p_disabled_vfs[vfid / 32]) { in qed_iov_mark_vf_flr()
3803 vfid, rel_vf_id); in qed_iov_mark_vf_flr()
3821 u16 vfid, in qed_iov_get_link() argument
3827 vfid, in qed_iov_get_link()
3880 struct qed_ptt *p_ptt, int vfid) in qed_iov_process_mbx_req() argument
3885 p_vf = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_process_mbx_req()
4110 int vfid) in qed_iov_copy_vf_msg() argument
4115 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_copy_vf_msg()
4129 "Failed to copy message from VF 0x%02x\n", vfid); in qed_iov_copy_vf_msg()
4138 u8 *mac, int vfid) in qed_iov_bulletin_set_forced_mac() argument
4143 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_forced_mac()
4146 "Can not set forced MAC, invalid vfid [%d]\n", vfid); in qed_iov_bulletin_set_forced_mac()
4152 "Can't set forced MAC to malicious VF [%d]\n", vfid); in qed_iov_bulletin_set_forced_mac()
4175 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid) in qed_iov_bulletin_set_mac() argument
4180 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_mac()
4183 vfid); in qed_iov_bulletin_set_mac()
4189 vfid); in qed_iov_bulletin_set_mac()
4211 u16 pvid, int vfid) in qed_iov_bulletin_set_forced_vlan() argument
4216 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_forced_vlan()
4219 "Can not set forced MAC, invalid vfid [%d]\n", vfid); in qed_iov_bulletin_set_forced_vlan()
4225 "Can't set forced vlan to malicious VF [%d]\n", vfid); in qed_iov_bulletin_set_forced_vlan()
4240 int vfid, u16 vxlan_port, u16 geneve_port) in qed_iov_bulletin_set_udp_ports() argument
4244 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_udp_ports()
4247 "Can not set udp ports, invalid vfid [%d]\n", vfid); in qed_iov_bulletin_set_udp_ports()
4254 vfid); in qed_iov_bulletin_set_udp_ports()
4262 static bool qed_iov_vf_has_vport_instance(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_vf_has_vport_instance() argument
4266 p_vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_vf_has_vport_instance()
4273 static bool qed_iov_is_vf_stopped(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_is_vf_stopped() argument
4277 p_vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_is_vf_stopped()
4284 static bool qed_iov_spoofchk_get(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_spoofchk_get() argument
4288 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_spoofchk_get()
4295 static int qed_iov_spoofchk_set(struct qed_hwfn *p_hwfn, int vfid, bool val) in qed_iov_spoofchk_set() argument
4300 if (!qed_iov_pf_sanity_check(p_hwfn, vfid)) { in qed_iov_spoofchk_set()
4306 vf = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_spoofchk_set()
4310 if (!qed_iov_vf_has_vport_instance(p_hwfn, vfid)) { in qed_iov_spoofchk_set()
4369 struct qed_ptt *p_ptt, int vfid, int val) in qed_iov_configure_tx_rate() argument
4376 vf = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_configure_tx_rate()
4390 qed_iov_configure_min_tx_rate(struct qed_dev *cdev, int vfid, u32 rate) in qed_iov_configure_min_tx_rate() argument
4399 if (!qed_iov_pf_sanity_check(p_hwfn, vfid)) { in qed_iov_configure_min_tx_rate()
4406 vf = qed_iov_get_vf_info(QED_LEADING_HWFN(cdev), (u16)vfid, true); in qed_iov_configure_min_tx_rate()
4412 static int qed_iov_get_vf_min_rate(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_get_vf_min_rate() argument
4417 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_get_vf_min_rate()
4521 u16 vfid, in qed_sriov_enable_qid_config() argument
4530 base = FEAT_NUM(hwfn, QED_PF_L2_QUE) + vfid * params->num_queues; in qed_sriov_enable_qid_config()
4532 params->rel_vf_id = vfid; in qed_sriov_enable_qid_config()
4626 static int qed_sriov_pf_set_mac(struct qed_dev *cdev, u8 *mac, int vfid) in qed_sriov_pf_set_mac() argument
4636 if (!qed_iov_is_valid_vfid(&cdev->hwfns[0], vfid, true, true)) { in qed_sriov_pf_set_mac()
4638 "Cannot set VF[%d] MAC (VF is not active)\n", vfid); in qed_sriov_pf_set_mac()
4646 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_mac()
4662 static int qed_sriov_pf_set_vlan(struct qed_dev *cdev, u16 vid, int vfid) in qed_sriov_pf_set_vlan() argument
4672 if (!qed_iov_is_valid_vfid(&cdev->hwfns[0], vfid, true, true)) { in qed_sriov_pf_set_vlan()
4674 "Cannot set VF[%d] MAC (VF is not active)\n", vfid); in qed_sriov_pf_set_vlan()
4682 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_vlan()
4847 static int qed_spoof_configure(struct qed_dev *cdev, int vfid, bool val) in qed_spoof_configure() argument
4854 rc = qed_iov_spoofchk_set(p_hwfn, vfid, val); in qed_spoof_configure()
4862 static int qed_configure_max_vf_rate(struct qed_dev *cdev, int vfid, int rate) in qed_configure_max_vf_rate() argument
4870 if (!qed_iov_pf_sanity_check(p_hwfn, vfid)) { in qed_configure_max_vf_rate()
4876 vf = qed_iov_get_public_vf_info(p_hwfn, vfid, true); in qed_configure_max_vf_rate()
4887 int vfid, u32 min_rate, u32 max_rate) in qed_set_vf_rate() argument
4892 rc_max = qed_configure_max_vf_rate(cdev, vfid, max_rate); in qed_set_vf_rate()
4895 rc_min = qed_iov_configure_min_tx_rate(cdev, vfid, min_rate); in qed_set_vf_rate()
4903 static int qed_set_vf_trust(struct qed_dev *cdev, int vfid, bool trust) in qed_set_vf_trust() argument
4911 if (!qed_iov_pf_sanity_check(hwfn, vfid)) { in qed_set_vf_trust()
4917 vf = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_set_vf_trust()
4987 int vfid) in qed_set_bulletin_mac() argument
4990 qed_iov_bulletin_set_mac(hwfn, info->mac, vfid); in qed_set_bulletin_mac()
4992 qed_iov_bulletin_set_forced_mac(hwfn, info->forced_mac, vfid); in qed_set_bulletin_mac()