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
2995 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_pre_update_vport()
3232 int vfid, struct qed_filter_ucast *params) in qed_iov_chk_ucast() argument
3236 vf = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_chk_ucast()
3246 qed_iov_bulletin_set_mac(hwfn, vf->mac, vfid); in qed_iov_chk_ucast()
3686 u16 vfid = p_vf->abs_vf_id; in qed_iov_execute_vf_flr_cleanup() local
3689 "VF[%d] - Handling FLR\n", vfid); in qed_iov_execute_vf_flr_cleanup()
3701 rc = qed_final_cleanup(p_hwfn, p_ptt, vfid, true); in qed_iov_execute_vf_flr_cleanup()
3703 DP_ERR(p_hwfn, "Failed handle FLR of VF[%d]\n", vfid); in qed_iov_execute_vf_flr_cleanup()
3712 USTORM_VF_PF_CHANNEL_READY, vfid), 1); in qed_iov_execute_vf_flr_cleanup()
3722 vfid); in qed_iov_execute_vf_flr_cleanup()
3729 ack_vfs[vfid / 32] |= BIT((vfid % 32)); in qed_iov_execute_vf_flr_cleanup()
3779 u8 vfid; in qed_iov_mark_vf_flr() local
3785 vfid = p_vf->abs_vf_id; in qed_iov_mark_vf_flr()
3786 if (BIT((vfid % 32)) & p_disabled_vfs[vfid / 32]) { in qed_iov_mark_vf_flr()
3792 vfid, rel_vf_id); in qed_iov_mark_vf_flr()
3810 u16 vfid, in qed_iov_get_link() argument
3816 vfid, in qed_iov_get_link()
3868 struct qed_ptt *p_ptt, int vfid) in qed_iov_process_mbx_req() argument
3873 p_vf = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_process_mbx_req()
4098 int vfid) in qed_iov_copy_vf_msg() argument
4103 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_copy_vf_msg()
4117 "Failed to copy message from VF 0x%02x\n", vfid); in qed_iov_copy_vf_msg()
4126 u8 *mac, int vfid) in qed_iov_bulletin_set_forced_mac() argument
4131 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_forced_mac()
4134 "Can not set forced MAC, invalid vfid [%d]\n", vfid); in qed_iov_bulletin_set_forced_mac()
4140 "Can't set forced MAC to malicious VF [%d]\n", vfid); in qed_iov_bulletin_set_forced_mac()
4163 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid) in qed_iov_bulletin_set_mac() argument
4168 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_mac()
4171 vfid); in qed_iov_bulletin_set_mac()
4177 vfid); in qed_iov_bulletin_set_mac()
4199 u16 pvid, int vfid) in qed_iov_bulletin_set_forced_vlan() argument
4204 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_forced_vlan()
4207 "Can not set forced MAC, invalid vfid [%d]\n", vfid); in qed_iov_bulletin_set_forced_vlan()
4213 "Can't set forced vlan to malicious VF [%d]\n", vfid); in qed_iov_bulletin_set_forced_vlan()
4228 int vfid, u16 vxlan_port, u16 geneve_port) in qed_iov_bulletin_set_udp_ports() argument
4232 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_udp_ports()
4235 "Can not set udp ports, invalid vfid [%d]\n", vfid); in qed_iov_bulletin_set_udp_ports()
4242 vfid); in qed_iov_bulletin_set_udp_ports()
4250 static bool qed_iov_vf_has_vport_instance(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_vf_has_vport_instance() argument
4254 p_vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_vf_has_vport_instance()
4261 static bool qed_iov_is_vf_stopped(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_is_vf_stopped() argument
4265 p_vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_is_vf_stopped()
4272 static bool qed_iov_spoofchk_get(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_spoofchk_get() argument
4276 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_spoofchk_get()
4283 static int qed_iov_spoofchk_set(struct qed_hwfn *p_hwfn, int vfid, bool val) in qed_iov_spoofchk_set() argument
4288 if (!qed_iov_pf_sanity_check(p_hwfn, vfid)) { in qed_iov_spoofchk_set()
4294 vf = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_spoofchk_set()
4298 if (!qed_iov_vf_has_vport_instance(p_hwfn, vfid)) { in qed_iov_spoofchk_set()
4357 struct qed_ptt *p_ptt, int vfid, int val) in qed_iov_configure_tx_rate() argument
4364 vf = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_configure_tx_rate()
4378 qed_iov_configure_min_tx_rate(struct qed_dev *cdev, int vfid, u32 rate) in qed_iov_configure_min_tx_rate() argument
4387 if (!qed_iov_pf_sanity_check(p_hwfn, vfid)) { in qed_iov_configure_min_tx_rate()
4394 vf = qed_iov_get_vf_info(QED_LEADING_HWFN(cdev), (u16)vfid, true); in qed_iov_configure_min_tx_rate()
4400 static int qed_iov_get_vf_min_rate(struct qed_hwfn *p_hwfn, int vfid) in qed_iov_get_vf_min_rate() argument
4405 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_get_vf_min_rate()
4509 u16 vfid, in qed_sriov_enable_qid_config() argument
4518 base = FEAT_NUM(hwfn, QED_PF_L2_QUE) + vfid * params->num_queues; in qed_sriov_enable_qid_config()
4520 params->rel_vf_id = vfid; in qed_sriov_enable_qid_config()
4614 static int qed_sriov_pf_set_mac(struct qed_dev *cdev, u8 *mac, int vfid) in qed_sriov_pf_set_mac() argument
4624 if (!qed_iov_is_valid_vfid(&cdev->hwfns[0], vfid, true, true)) { in qed_sriov_pf_set_mac()
4626 "Cannot set VF[%d] MAC (VF is not active)\n", vfid); in qed_sriov_pf_set_mac()
4634 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_mac()
4650 static int qed_sriov_pf_set_vlan(struct qed_dev *cdev, u16 vid, int vfid) in qed_sriov_pf_set_vlan() argument
4660 if (!qed_iov_is_valid_vfid(&cdev->hwfns[0], vfid, true, true)) { in qed_sriov_pf_set_vlan()
4662 "Cannot set VF[%d] MAC (VF is not active)\n", vfid); in qed_sriov_pf_set_vlan()
4670 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_vlan()
4831 static int qed_spoof_configure(struct qed_dev *cdev, int vfid, bool val) in qed_spoof_configure() argument
4838 rc = qed_iov_spoofchk_set(p_hwfn, vfid, val); in qed_spoof_configure()
4846 static int qed_configure_max_vf_rate(struct qed_dev *cdev, int vfid, int rate) in qed_configure_max_vf_rate() argument
4854 if (!qed_iov_pf_sanity_check(p_hwfn, vfid)) { in qed_configure_max_vf_rate()
4860 vf = qed_iov_get_public_vf_info(p_hwfn, vfid, true); in qed_configure_max_vf_rate()
4871 int vfid, u32 min_rate, u32 max_rate) in qed_set_vf_rate() argument
4876 rc_max = qed_configure_max_vf_rate(cdev, vfid, max_rate); in qed_set_vf_rate()
4879 rc_min = qed_iov_configure_min_tx_rate(cdev, vfid, min_rate); in qed_set_vf_rate()
4887 static int qed_set_vf_trust(struct qed_dev *cdev, int vfid, bool trust) in qed_set_vf_trust() argument
4895 if (!qed_iov_pf_sanity_check(hwfn, vfid)) { in qed_set_vf_trust()
4901 vf = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_set_vf_trust()
4971 int vfid) in qed_set_bulletin_mac() argument
4974 qed_iov_bulletin_set_mac(hwfn, info->mac, vfid); in qed_set_bulletin_mac()
4976 qed_iov_bulletin_set_forced_mac(hwfn, info->forced_mac, vfid); in qed_set_bulletin_mac()