Lines Matching refs:vf_info
1302 struct qed_vf_info *vf_info, in qed_iov_prepare_resp() argument
1305 struct qed_iov_vf_mbx *mbx = &vf_info->vf_mbx; in qed_iov_prepare_resp()
1313 qed_iov_send_response(p_hwfn, p_ptt, vf_info, length, status); in qed_iov_prepare_resp()
1332 struct qed_public_vf_info *vf_info; in qed_iov_clean_vf() local
1334 vf_info = qed_iov_get_public_vf_info(p_hwfn, vfid, false); in qed_iov_clean_vf()
1336 if (!vf_info) in qed_iov_clean_vf()
1340 eth_zero_addr(vf_info->mac); in qed_iov_clean_vf()
1342 vf_info->rx_accept_mode = 0; in qed_iov_clean_vf()
1343 vf_info->tx_accept_mode = 0; in qed_iov_clean_vf()
1895 struct qed_vf_info *vf_info; in qed_iov_vf_mbx_start_vport() local
1900 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vf->relative_vf_id, true); in qed_iov_vf_mbx_start_vport()
1901 if (!vf_info) { in qed_iov_vf_mbx_start_vport()
1934 p_bitmap = &vf_info->bulletin.p_virt->valid_bitmap; in qed_iov_vf_mbx_start_vport()
1938 vf_info->bulletin.p_virt->default_only_untagged = vf_req; in qed_iov_vf_mbx_start_vport()
1946 params.only_untagged = vf_info->bulletin.p_virt->default_only_untagged; in qed_iov_vf_mbx_start_vport()
2984 struct qed_public_vf_info *vf_info; in qed_iov_pre_update_vport() local
2993 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_pre_update_vport()
2996 vf_info->rx_accept_mode = flags->rx_accept_filter; in qed_iov_pre_update_vport()
2997 if (!vf_info->is_trusted_configured) in qed_iov_pre_update_vport()
3002 vf_info->tx_accept_mode = flags->tx_accept_filter; in qed_iov_pre_update_vport()
3003 if (!vf_info->is_trusted_configured) in qed_iov_pre_update_vport()
4076 struct qed_vf_info *vf_info; in qed_iov_copy_vf_msg() local
4078 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_copy_vf_msg()
4079 if (!vf_info) in qed_iov_copy_vf_msg()
4085 params.src_vfid = vf_info->abs_vf_id; in qed_iov_copy_vf_msg()
4088 vf_info->vf_mbx.pending_req, in qed_iov_copy_vf_msg()
4089 vf_info->vf_mbx.req_phys, in qed_iov_copy_vf_msg()
4103 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_forced_mac() local
4106 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_forced_mac()
4107 if (!vf_info) { in qed_iov_bulletin_set_forced_mac()
4113 if (vf_info->b_malicious) { in qed_iov_bulletin_set_forced_mac()
4119 if (vf_info->p_vf_info.is_trusted_configured) { in qed_iov_bulletin_set_forced_mac()
4122 vf_info->bulletin.p_virt->valid_bitmap &= in qed_iov_bulletin_set_forced_mac()
4127 vf_info->bulletin.p_virt->valid_bitmap &= in qed_iov_bulletin_set_forced_mac()
4131 memcpy(vf_info->bulletin.p_virt->mac, mac, ETH_ALEN); in qed_iov_bulletin_set_forced_mac()
4133 vf_info->bulletin.p_virt->valid_bitmap |= feature; in qed_iov_bulletin_set_forced_mac()
4135 qed_iov_configure_vport_forced(p_hwfn, vf_info, feature); in qed_iov_bulletin_set_forced_mac()
4140 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_mac() local
4143 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_mac()
4144 if (!vf_info) { in qed_iov_bulletin_set_mac()
4150 if (vf_info->b_malicious) { in qed_iov_bulletin_set_mac()
4156 if (vf_info->bulletin.p_virt->valid_bitmap & BIT(MAC_ADDR_FORCED)) { in qed_iov_bulletin_set_mac()
4163 ether_addr_copy(vf_info->bulletin.p_virt->mac, mac); in qed_iov_bulletin_set_mac()
4165 vf_info->bulletin.p_virt->valid_bitmap |= feature; in qed_iov_bulletin_set_mac()
4167 if (vf_info->p_vf_info.is_trusted_configured) in qed_iov_bulletin_set_mac()
4168 qed_iov_configure_vport_forced(p_hwfn, vf_info, feature); in qed_iov_bulletin_set_mac()
4176 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_forced_vlan() local
4179 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_bulletin_set_forced_vlan()
4180 if (!vf_info) { in qed_iov_bulletin_set_forced_vlan()
4186 if (vf_info->b_malicious) { in qed_iov_bulletin_set_forced_vlan()
4193 vf_info->bulletin.p_virt->pvid = pvid; in qed_iov_bulletin_set_forced_vlan()
4195 vf_info->bulletin.p_virt->valid_bitmap |= feature; in qed_iov_bulletin_set_forced_vlan()
4197 vf_info->bulletin.p_virt->valid_bitmap &= ~feature; in qed_iov_bulletin_set_forced_vlan()
4199 qed_iov_configure_vport_forced(p_hwfn, vf_info, feature); in qed_iov_bulletin_set_forced_vlan()
4205 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_udp_ports() local
4207 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_udp_ports()
4208 if (!vf_info) { in qed_iov_bulletin_set_udp_ports()
4214 if (vf_info->b_malicious) { in qed_iov_bulletin_set_udp_ports()
4221 vf_info->bulletin.p_virt->vxlan_udp_port = vxlan_port; in qed_iov_bulletin_set_udp_ports()
4222 vf_info->bulletin.p_virt->geneve_udp_port = geneve_port; in qed_iov_bulletin_set_udp_ports()
4249 struct qed_vf_info *vf_info; in qed_iov_spoofchk_get() local
4251 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_spoofchk_get()
4252 if (!vf_info) in qed_iov_spoofchk_get()
4255 return vf_info->spoof_chk; in qed_iov_spoofchk_get()
4377 struct qed_vf_info *vf_info; in qed_iov_get_vf_min_rate() local
4379 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_get_vf_min_rate()
4380 if (!vf_info) in qed_iov_get_vf_min_rate()
4383 vf_vp_wfq = &p_hwfn->qm_info.wfq_data[vf_info->vport_id]; in qed_iov_get_vf_min_rate()
4604 struct qed_public_vf_info *vf_info; in qed_sriov_pf_set_mac() local
4606 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_mac()
4607 if (!vf_info) in qed_sriov_pf_set_mac()
4611 if (vf_info->is_trusted_configured) in qed_sriov_pf_set_mac()
4612 ether_addr_copy(vf_info->mac, mac); in qed_sriov_pf_set_mac()
4614 ether_addr_copy(vf_info->forced_mac, mac); in qed_sriov_pf_set_mac()
4640 struct qed_public_vf_info *vf_info; in qed_sriov_pf_set_vlan() local
4642 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_vlan()
4643 if (!vf_info) in qed_sriov_pf_set_vlan()
4647 vf_info->forced_vlan = vid; in qed_sriov_pf_set_vlan()
4658 struct qed_public_vf_info *vf_info; in qed_get_vf_config() local
4672 vf_info = qed_iov_get_public_vf_info(hwfn, vf_id, true); in qed_get_vf_config()
4679 if (is_valid_ether_addr(vf_info->forced_mac)) in qed_get_vf_config()
4680 ether_addr_copy(ivi->mac, vf_info->forced_mac); in qed_get_vf_config()
4682 ether_addr_copy(ivi->mac, vf_info->mac); in qed_get_vf_config()
4684 ivi->vlan = vf_info->forced_vlan; in qed_get_vf_config()
4686 ivi->linkstate = vf_info->link_state; in qed_get_vf_config()
4687 tx_rate = vf_info->tx_rate; in qed_get_vf_config()
4707 struct qed_public_vf_info *vf_info; in qed_inform_vf_link_state() local
4709 vf_info = qed_iov_get_public_vf_info(hwfn, i, false); in qed_inform_vf_link_state()
4710 if (!vf_info) in qed_inform_vf_link_state()
4725 switch (vf_info->link_state) { in qed_inform_vf_link_state()
4742 if (link.link_up && vf_info->tx_rate) { in qed_inform_vf_link_state()
4746 rate = min_t(int, vf_info->tx_rate, link.speed); in qed_inform_vf_link_state()
4755 vf_info->tx_rate = rate; in qed_inform_vf_link_state()
5019 struct qed_public_vf_info *vf_info; in qed_update_mac_for_vf_trust_change() local
5024 vf_info = qed_iov_get_public_vf_info(hwfn, vf_id, true); in qed_update_mac_for_vf_trust_change()
5027 if (!vf_info || !vf) in qed_update_mac_for_vf_trust_change()
5031 if (vf_info->is_trusted_configured && in qed_update_mac_for_vf_trust_change()
5041 vf_info->mac)) { in qed_update_mac_for_vf_trust_change()
5045 vf_info->mac, vf_id); in qed_update_mac_for_vf_trust_change()
5050 ether_addr_copy(vf_info->mac, force_mac); in qed_update_mac_for_vf_trust_change()
5051 eth_zero_addr(vf_info->forced_mac); in qed_update_mac_for_vf_trust_change()
5059 if (!vf_info->is_trusted_configured) { in qed_update_mac_for_vf_trust_change()
5067 vf_info->mac); in qed_update_mac_for_vf_trust_change()
5070 vf_info->mac, vf_id); in qed_update_mac_for_vf_trust_change()
5086 struct qed_public_vf_info *vf_info; in qed_iov_handle_trust_change() local
5099 vf_info = qed_iov_get_public_vf_info(hwfn, i, true); in qed_iov_handle_trust_change()
5100 if (vf_info->is_trusted_configured == in qed_iov_handle_trust_change()
5101 vf_info->is_trusted_request) in qed_iov_handle_trust_change()
5103 vf_info->is_trusted_configured = vf_info->is_trusted_request; in qed_iov_handle_trust_change()
5118 params.mac_chk_en = !vf_info->is_trusted_configured; in qed_iov_handle_trust_change()
5120 if (vf_info->rx_accept_mode & mask) { in qed_iov_handle_trust_change()
5122 flags->rx_accept_filter = vf_info->rx_accept_mode; in qed_iov_handle_trust_change()
5125 if (vf_info->tx_accept_mode & mask) { in qed_iov_handle_trust_change()
5127 flags->tx_accept_filter = vf_info->tx_accept_mode; in qed_iov_handle_trust_change()
5131 if (!vf_info->is_trusted_configured) { in qed_iov_handle_trust_change()