Lines Matching refs:vf_info
1304 struct qed_vf_info *vf_info, in qed_iov_prepare_resp() argument
1307 struct qed_iov_vf_mbx *mbx = &vf_info->vf_mbx; in qed_iov_prepare_resp()
1315 qed_iov_send_response(p_hwfn, p_ptt, vf_info, length, status); in qed_iov_prepare_resp()
1334 struct qed_public_vf_info *vf_info; in qed_iov_clean_vf() local
1336 vf_info = qed_iov_get_public_vf_info(p_hwfn, vfid, false); in qed_iov_clean_vf()
1338 if (!vf_info) in qed_iov_clean_vf()
1342 eth_zero_addr(vf_info->mac); in qed_iov_clean_vf()
1344 vf_info->rx_accept_mode = 0; in qed_iov_clean_vf()
1345 vf_info->tx_accept_mode = 0; in qed_iov_clean_vf()
1897 struct qed_vf_info *vf_info; in qed_iov_vf_mbx_start_vport() local
1902 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vf->relative_vf_id, true); in qed_iov_vf_mbx_start_vport()
1903 if (!vf_info) { in qed_iov_vf_mbx_start_vport()
1936 p_bitmap = &vf_info->bulletin.p_virt->valid_bitmap; in qed_iov_vf_mbx_start_vport()
1940 vf_info->bulletin.p_virt->default_only_untagged = vf_req; in qed_iov_vf_mbx_start_vport()
1948 params.only_untagged = vf_info->bulletin.p_virt->default_only_untagged; in qed_iov_vf_mbx_start_vport()
2986 struct qed_public_vf_info *vf_info; in qed_iov_pre_update_vport() local
2995 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_pre_update_vport()
2998 vf_info->rx_accept_mode = flags->rx_accept_filter; in qed_iov_pre_update_vport()
2999 if (!vf_info->is_trusted_configured) in qed_iov_pre_update_vport()
3004 vf_info->tx_accept_mode = flags->tx_accept_filter; in qed_iov_pre_update_vport()
3005 if (!vf_info->is_trusted_configured) in qed_iov_pre_update_vport()
4101 struct qed_vf_info *vf_info; in qed_iov_copy_vf_msg() local
4103 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_copy_vf_msg()
4104 if (!vf_info) in qed_iov_copy_vf_msg()
4110 params.src_vfid = vf_info->abs_vf_id; in qed_iov_copy_vf_msg()
4113 vf_info->vf_mbx.pending_req, in qed_iov_copy_vf_msg()
4114 vf_info->vf_mbx.req_phys, in qed_iov_copy_vf_msg()
4128 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_forced_mac() local
4131 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_forced_mac()
4132 if (!vf_info) { in qed_iov_bulletin_set_forced_mac()
4138 if (vf_info->b_malicious) { in qed_iov_bulletin_set_forced_mac()
4144 if (vf_info->p_vf_info.is_trusted_configured) { in qed_iov_bulletin_set_forced_mac()
4147 vf_info->bulletin.p_virt->valid_bitmap &= in qed_iov_bulletin_set_forced_mac()
4152 vf_info->bulletin.p_virt->valid_bitmap &= in qed_iov_bulletin_set_forced_mac()
4156 memcpy(vf_info->bulletin.p_virt->mac, mac, ETH_ALEN); in qed_iov_bulletin_set_forced_mac()
4158 vf_info->bulletin.p_virt->valid_bitmap |= feature; in qed_iov_bulletin_set_forced_mac()
4160 qed_iov_configure_vport_forced(p_hwfn, vf_info, feature); in qed_iov_bulletin_set_forced_mac()
4165 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_mac() local
4168 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_mac()
4169 if (!vf_info) { in qed_iov_bulletin_set_mac()
4175 if (vf_info->b_malicious) { in qed_iov_bulletin_set_mac()
4181 if (vf_info->bulletin.p_virt->valid_bitmap & BIT(MAC_ADDR_FORCED)) { in qed_iov_bulletin_set_mac()
4188 ether_addr_copy(vf_info->bulletin.p_virt->mac, mac); in qed_iov_bulletin_set_mac()
4190 vf_info->bulletin.p_virt->valid_bitmap |= feature; in qed_iov_bulletin_set_mac()
4192 if (vf_info->p_vf_info.is_trusted_configured) in qed_iov_bulletin_set_mac()
4193 qed_iov_configure_vport_forced(p_hwfn, vf_info, feature); in qed_iov_bulletin_set_mac()
4201 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_forced_vlan() local
4204 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_forced_vlan()
4205 if (!vf_info) { in qed_iov_bulletin_set_forced_vlan()
4211 if (vf_info->b_malicious) { in qed_iov_bulletin_set_forced_vlan()
4218 vf_info->bulletin.p_virt->pvid = pvid; in qed_iov_bulletin_set_forced_vlan()
4220 vf_info->bulletin.p_virt->valid_bitmap |= feature; in qed_iov_bulletin_set_forced_vlan()
4222 vf_info->bulletin.p_virt->valid_bitmap &= ~feature; in qed_iov_bulletin_set_forced_vlan()
4224 qed_iov_configure_vport_forced(p_hwfn, vf_info, feature); in qed_iov_bulletin_set_forced_vlan()
4230 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_udp_ports() local
4232 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_udp_ports()
4233 if (!vf_info) { in qed_iov_bulletin_set_udp_ports()
4239 if (vf_info->b_malicious) { in qed_iov_bulletin_set_udp_ports()
4246 vf_info->bulletin.p_virt->vxlan_udp_port = vxlan_port; in qed_iov_bulletin_set_udp_ports()
4247 vf_info->bulletin.p_virt->geneve_udp_port = geneve_port; in qed_iov_bulletin_set_udp_ports()
4274 struct qed_vf_info *vf_info; in qed_iov_spoofchk_get() local
4276 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_spoofchk_get()
4277 if (!vf_info) in qed_iov_spoofchk_get()
4280 return vf_info->spoof_chk; in qed_iov_spoofchk_get()
4403 struct qed_vf_info *vf_info; in qed_iov_get_vf_min_rate() local
4405 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_get_vf_min_rate()
4406 if (!vf_info) in qed_iov_get_vf_min_rate()
4409 vf_vp_wfq = &p_hwfn->qm_info.wfq_data[vf_info->vport_id]; in qed_iov_get_vf_min_rate()
4632 struct qed_public_vf_info *vf_info; in qed_sriov_pf_set_mac() local
4634 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_mac()
4635 if (!vf_info) in qed_sriov_pf_set_mac()
4639 if (vf_info->is_trusted_configured) in qed_sriov_pf_set_mac()
4640 ether_addr_copy(vf_info->mac, mac); in qed_sriov_pf_set_mac()
4642 ether_addr_copy(vf_info->forced_mac, mac); in qed_sriov_pf_set_mac()
4668 struct qed_public_vf_info *vf_info; in qed_sriov_pf_set_vlan() local
4670 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_vlan()
4671 if (!vf_info) in qed_sriov_pf_set_vlan()
4675 vf_info->forced_vlan = vid; in qed_sriov_pf_set_vlan()
4686 struct qed_public_vf_info *vf_info; in qed_get_vf_config() local
4700 vf_info = qed_iov_get_public_vf_info(hwfn, vf_id, true); in qed_get_vf_config()
4707 if (is_valid_ether_addr(vf_info->forced_mac)) in qed_get_vf_config()
4708 ether_addr_copy(ivi->mac, vf_info->forced_mac); in qed_get_vf_config()
4710 ether_addr_copy(ivi->mac, vf_info->mac); in qed_get_vf_config()
4712 ivi->vlan = vf_info->forced_vlan; in qed_get_vf_config()
4714 ivi->linkstate = vf_info->link_state; in qed_get_vf_config()
4715 tx_rate = vf_info->tx_rate; in qed_get_vf_config()
4735 struct qed_public_vf_info *vf_info; in qed_inform_vf_link_state() local
4737 vf_info = qed_iov_get_public_vf_info(hwfn, i, false); in qed_inform_vf_link_state()
4738 if (!vf_info) in qed_inform_vf_link_state()
4753 switch (vf_info->link_state) { in qed_inform_vf_link_state()
4771 if (link.link_up && vf_info->tx_rate) { in qed_inform_vf_link_state()
4775 rate = min_t(int, vf_info->tx_rate, link.speed); in qed_inform_vf_link_state()
4784 vf_info->tx_rate = rate; in qed_inform_vf_link_state()
5048 struct qed_public_vf_info *vf_info; in qed_update_mac_for_vf_trust_change() local
5053 vf_info = qed_iov_get_public_vf_info(hwfn, vf_id, true); in qed_update_mac_for_vf_trust_change()
5056 if (!vf_info || !vf) in qed_update_mac_for_vf_trust_change()
5060 if (vf_info->is_trusted_configured && in qed_update_mac_for_vf_trust_change()
5070 vf_info->mac)) { in qed_update_mac_for_vf_trust_change()
5074 vf_info->mac, vf_id); in qed_update_mac_for_vf_trust_change()
5079 ether_addr_copy(vf_info->mac, force_mac); in qed_update_mac_for_vf_trust_change()
5080 eth_zero_addr(vf_info->forced_mac); in qed_update_mac_for_vf_trust_change()
5088 if (!vf_info->is_trusted_configured) { in qed_update_mac_for_vf_trust_change()
5096 vf_info->mac); in qed_update_mac_for_vf_trust_change()
5099 vf_info->mac, vf_id); in qed_update_mac_for_vf_trust_change()
5115 struct qed_public_vf_info *vf_info; in qed_iov_handle_trust_change() local
5128 vf_info = qed_iov_get_public_vf_info(hwfn, i, true); in qed_iov_handle_trust_change()
5129 if (vf_info->is_trusted_configured == in qed_iov_handle_trust_change()
5130 vf_info->is_trusted_request) in qed_iov_handle_trust_change()
5132 vf_info->is_trusted_configured = vf_info->is_trusted_request; in qed_iov_handle_trust_change()
5147 params.mac_chk_en = !vf_info->is_trusted_configured; in qed_iov_handle_trust_change()
5149 if (vf_info->rx_accept_mode & mask) { in qed_iov_handle_trust_change()
5151 flags->rx_accept_filter = vf_info->rx_accept_mode; in qed_iov_handle_trust_change()
5154 if (vf_info->tx_accept_mode & mask) { in qed_iov_handle_trust_change()
5156 flags->tx_accept_filter = vf_info->tx_accept_mode; in qed_iov_handle_trust_change()
5160 if (!vf_info->is_trusted_configured) { in qed_iov_handle_trust_change()