Lines Matching refs:vf_info

1320 				 struct qed_vf_info *vf_info,  in qed_iov_prepare_resp()  argument
1323 struct qed_iov_vf_mbx *mbx = &vf_info->vf_mbx; in qed_iov_prepare_resp()
1331 qed_iov_send_response(p_hwfn, p_ptt, vf_info, length, status); in qed_iov_prepare_resp()
1350 struct qed_public_vf_info *vf_info; in qed_iov_clean_vf() local
1352 vf_info = qed_iov_get_public_vf_info(p_hwfn, vfid, false); in qed_iov_clean_vf()
1354 if (!vf_info) in qed_iov_clean_vf()
1358 eth_zero_addr(vf_info->mac); in qed_iov_clean_vf()
1360 vf_info->rx_accept_mode = 0; in qed_iov_clean_vf()
1361 vf_info->tx_accept_mode = 0; in qed_iov_clean_vf()
1913 struct qed_vf_info *vf_info; in qed_iov_vf_mbx_start_vport() local
1918 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vf->relative_vf_id, true); in qed_iov_vf_mbx_start_vport()
1919 if (!vf_info) { in qed_iov_vf_mbx_start_vport()
1952 p_bitmap = &vf_info->bulletin.p_virt->valid_bitmap; in qed_iov_vf_mbx_start_vport()
1956 vf_info->bulletin.p_virt->default_only_untagged = vf_req; in qed_iov_vf_mbx_start_vport()
1964 params.only_untagged = vf_info->bulletin.p_virt->default_only_untagged; in qed_iov_vf_mbx_start_vport()
3000 struct qed_public_vf_info *vf_info; in qed_iov_pre_update_vport() local
3009 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_iov_pre_update_vport()
3012 vf_info->rx_accept_mode = flags->rx_accept_filter; in qed_iov_pre_update_vport()
3013 if (!vf_info->is_trusted_configured) in qed_iov_pre_update_vport()
3018 vf_info->tx_accept_mode = flags->tx_accept_filter; in qed_iov_pre_update_vport()
3019 if (!vf_info->is_trusted_configured) in qed_iov_pre_update_vport()
4096 struct qed_vf_info *vf_info; in qed_iov_copy_vf_msg() local
4098 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_copy_vf_msg()
4099 if (!vf_info) in qed_iov_copy_vf_msg()
4104 params.src_vfid = vf_info->abs_vf_id; in qed_iov_copy_vf_msg()
4107 vf_info->vf_mbx.pending_req, in qed_iov_copy_vf_msg()
4108 vf_info->vf_mbx.req_phys, in qed_iov_copy_vf_msg()
4122 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_forced_mac() local
4125 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_forced_mac()
4126 if (!vf_info) { in qed_iov_bulletin_set_forced_mac()
4132 if (vf_info->b_malicious) { in qed_iov_bulletin_set_forced_mac()
4138 if (vf_info->p_vf_info.is_trusted_configured) { in qed_iov_bulletin_set_forced_mac()
4141 vf_info->bulletin.p_virt->valid_bitmap &= in qed_iov_bulletin_set_forced_mac()
4146 vf_info->bulletin.p_virt->valid_bitmap &= in qed_iov_bulletin_set_forced_mac()
4150 memcpy(vf_info->bulletin.p_virt->mac, mac, ETH_ALEN); in qed_iov_bulletin_set_forced_mac()
4152 vf_info->bulletin.p_virt->valid_bitmap |= feature; in qed_iov_bulletin_set_forced_mac()
4154 qed_iov_configure_vport_forced(p_hwfn, vf_info, feature); in qed_iov_bulletin_set_forced_mac()
4159 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_mac() local
4162 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_mac()
4163 if (!vf_info) { in qed_iov_bulletin_set_mac()
4169 if (vf_info->b_malicious) { in qed_iov_bulletin_set_mac()
4175 if (vf_info->bulletin.p_virt->valid_bitmap & BIT(MAC_ADDR_FORCED)) { in qed_iov_bulletin_set_mac()
4182 ether_addr_copy(vf_info->bulletin.p_virt->mac, mac); in qed_iov_bulletin_set_mac()
4184 vf_info->bulletin.p_virt->valid_bitmap |= feature; in qed_iov_bulletin_set_mac()
4186 if (vf_info->p_vf_info.is_trusted_configured) in qed_iov_bulletin_set_mac()
4187 qed_iov_configure_vport_forced(p_hwfn, vf_info, feature); in qed_iov_bulletin_set_mac()
4195 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_forced_vlan() local
4198 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_bulletin_set_forced_vlan()
4199 if (!vf_info) { in qed_iov_bulletin_set_forced_vlan()
4205 if (vf_info->b_malicious) { in qed_iov_bulletin_set_forced_vlan()
4212 vf_info->bulletin.p_virt->pvid = pvid; in qed_iov_bulletin_set_forced_vlan()
4214 vf_info->bulletin.p_virt->valid_bitmap |= feature; in qed_iov_bulletin_set_forced_vlan()
4216 vf_info->bulletin.p_virt->valid_bitmap &= ~feature; in qed_iov_bulletin_set_forced_vlan()
4218 qed_iov_configure_vport_forced(p_hwfn, vf_info, feature); in qed_iov_bulletin_set_forced_vlan()
4224 struct qed_vf_info *vf_info; in qed_iov_bulletin_set_udp_ports() local
4226 vf_info = qed_iov_get_vf_info(p_hwfn, (u16)vfid, true); in qed_iov_bulletin_set_udp_ports()
4227 if (!vf_info) { in qed_iov_bulletin_set_udp_ports()
4233 if (vf_info->b_malicious) { in qed_iov_bulletin_set_udp_ports()
4240 vf_info->bulletin.p_virt->vxlan_udp_port = vxlan_port; in qed_iov_bulletin_set_udp_ports()
4241 vf_info->bulletin.p_virt->geneve_udp_port = geneve_port; in qed_iov_bulletin_set_udp_ports()
4268 struct qed_vf_info *vf_info; in qed_iov_spoofchk_get() local
4270 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_spoofchk_get()
4271 if (!vf_info) in qed_iov_spoofchk_get()
4274 return vf_info->spoof_chk; in qed_iov_spoofchk_get()
4398 struct qed_vf_info *vf_info; in qed_iov_get_vf_min_rate() local
4400 vf_info = qed_iov_get_vf_info(p_hwfn, (u16) vfid, true); in qed_iov_get_vf_min_rate()
4401 if (!vf_info) in qed_iov_get_vf_min_rate()
4404 vf_vp_wfq = &p_hwfn->qm_info.wfq_data[vf_info->vport_id]; in qed_iov_get_vf_min_rate()
4618 struct qed_public_vf_info *vf_info; in qed_sriov_pf_set_mac() local
4620 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_mac()
4621 if (!vf_info) in qed_sriov_pf_set_mac()
4625 if (vf_info->is_trusted_configured) in qed_sriov_pf_set_mac()
4626 ether_addr_copy(vf_info->mac, mac); in qed_sriov_pf_set_mac()
4628 ether_addr_copy(vf_info->forced_mac, mac); in qed_sriov_pf_set_mac()
4654 struct qed_public_vf_info *vf_info; in qed_sriov_pf_set_vlan() local
4656 vf_info = qed_iov_get_public_vf_info(hwfn, vfid, true); in qed_sriov_pf_set_vlan()
4657 if (!vf_info) in qed_sriov_pf_set_vlan()
4661 vf_info->forced_vlan = vid; in qed_sriov_pf_set_vlan()
4672 struct qed_public_vf_info *vf_info; in qed_get_vf_config() local
4686 vf_info = qed_iov_get_public_vf_info(hwfn, vf_id, true); in qed_get_vf_config()
4693 if (is_valid_ether_addr(vf_info->forced_mac)) in qed_get_vf_config()
4694 ether_addr_copy(ivi->mac, vf_info->forced_mac); in qed_get_vf_config()
4696 ether_addr_copy(ivi->mac, vf_info->mac); in qed_get_vf_config()
4698 ivi->vlan = vf_info->forced_vlan; in qed_get_vf_config()
4700 ivi->linkstate = vf_info->link_state; in qed_get_vf_config()
4701 tx_rate = vf_info->tx_rate; in qed_get_vf_config()
4721 struct qed_public_vf_info *vf_info; in qed_inform_vf_link_state() local
4723 vf_info = qed_iov_get_public_vf_info(hwfn, i, false); in qed_inform_vf_link_state()
4724 if (!vf_info) in qed_inform_vf_link_state()
4739 switch (vf_info->link_state) { in qed_inform_vf_link_state()
4756 if (link.link_up && vf_info->tx_rate) { in qed_inform_vf_link_state()
4760 rate = min_t(int, vf_info->tx_rate, link.speed); in qed_inform_vf_link_state()
4769 vf_info->tx_rate = rate; in qed_inform_vf_link_state()
5033 struct qed_public_vf_info *vf_info; in qed_update_mac_for_vf_trust_change() local
5038 vf_info = qed_iov_get_public_vf_info(hwfn, vf_id, true); in qed_update_mac_for_vf_trust_change()
5041 if (!vf_info || !vf) in qed_update_mac_for_vf_trust_change()
5045 if (vf_info->is_trusted_configured && in qed_update_mac_for_vf_trust_change()
5055 vf_info->mac)) { in qed_update_mac_for_vf_trust_change()
5060 vf_info->mac, vf_id); in qed_update_mac_for_vf_trust_change()
5065 ether_addr_copy(vf_info->mac, force_mac); in qed_update_mac_for_vf_trust_change()
5066 memset(vf_info->forced_mac, 0, ETH_ALEN); in qed_update_mac_for_vf_trust_change()
5074 if (!vf_info->is_trusted_configured) { in qed_update_mac_for_vf_trust_change()
5082 vf_info->mac); in qed_update_mac_for_vf_trust_change()
5085 vf_info->mac, vf_id); in qed_update_mac_for_vf_trust_change()
5101 struct qed_public_vf_info *vf_info; in qed_iov_handle_trust_change() local
5114 vf_info = qed_iov_get_public_vf_info(hwfn, i, true); in qed_iov_handle_trust_change()
5115 if (vf_info->is_trusted_configured == in qed_iov_handle_trust_change()
5116 vf_info->is_trusted_request) in qed_iov_handle_trust_change()
5118 vf_info->is_trusted_configured = vf_info->is_trusted_request; in qed_iov_handle_trust_change()
5132 if (vf_info->rx_accept_mode & mask) { in qed_iov_handle_trust_change()
5134 flags->rx_accept_filter = vf_info->rx_accept_mode; in qed_iov_handle_trust_change()
5137 if (vf_info->tx_accept_mode & mask) { in qed_iov_handle_trust_change()
5139 flags->tx_accept_filter = vf_info->tx_accept_mode; in qed_iov_handle_trust_change()
5143 if (!vf_info->is_trusted_configured) { in qed_iov_handle_trust_change()