Lines Matching refs:mac

23 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid);
1342 eth_zero_addr(vf_info->mac); in qed_iov_clean_vf()
1788 ether_addr_copy(filter.mac, p_vf->bulletin.p_virt->mac); in qed_iov_configure_vport_forced()
3183 p_params->mac)) { in qed_iov_vf_update_mac_shadow()
3208 p_params->mac); in qed_iov_vf_update_mac_shadow()
3254 ether_addr_copy(vf->mac, params->mac); in qed_iov_chk_ucast()
3257 qed_iov_bulletin_set_mac(hwfn, vf->mac, vfid); in qed_iov_chk_ucast()
3288 memcpy(params.mac, req->mac, ETH_ALEN); in qed_iov_vf_mbx_ucast_filter()
3298 params.mac, params.vlan); in qed_iov_vf_mbx_ucast_filter()
3331 if (!ether_addr_equal(p_bulletin->mac, params.mac) || in qed_iov_vf_mbx_ucast_filter()
3867 ether_addr_copy(p_bulletin->mac, p_req->mac); in qed_iov_vf_pf_bulletin_update_mac()
3870 p_vf->abs_vf_id, p_req->mac); in qed_iov_vf_pf_bulletin_update_mac()
4138 u8 *mac, int vfid) in qed_iov_bulletin_set_forced_mac() argument
4168 memcpy(vf_info->bulletin.p_virt->mac, mac, ETH_ALEN); 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
4200 ether_addr_copy(vf_info->bulletin.p_virt->mac, mac); in qed_iov_bulletin_set_mac()
4335 return p_vf->bulletin.p_virt->mac; in qed_iov_bulletin_get_mac()
4350 return p_vf->bulletin.p_virt->mac; in qed_iov_bulletin_get_forced_mac()
4629 static int qed_sriov_pf_set_mac(struct qed_dev *cdev, u8 *mac, int vfid) in qed_sriov_pf_set_mac() argument
4655 ether_addr_copy(vf_info->mac, mac); in qed_sriov_pf_set_mac()
4657 ether_addr_copy(vf_info->forced_mac, mac); in qed_sriov_pf_set_mac()
4726 ether_addr_copy(ivi->mac, vf_info->forced_mac); in qed_get_vf_config()
4728 ether_addr_copy(ivi->mac, vf_info->mac); in qed_get_vf_config()
4972 u8 *mac, in qed_pf_validate_req_vf_mac() argument
4976 if (is_valid_ether_addr(info->mac) && in qed_pf_validate_req_vf_mac()
4977 (!mac || !ether_addr_equal(mac, info->mac))) in qed_pf_validate_req_vf_mac()
4981 (!mac || !ether_addr_equal(mac, info->forced_mac))) in qed_pf_validate_req_vf_mac()
4993 qed_iov_bulletin_set_mac(hwfn, info->mac, vfid); in qed_set_bulletin_mac()
5005 u8 *mac; in qed_handle_pf_set_vf_unicast() local
5013 mac = qed_iov_bulletin_get_mac(hwfn, i); in qed_handle_pf_set_vf_unicast()
5015 mac = qed_iov_bulletin_get_forced_mac(hwfn, i); in qed_handle_pf_set_vf_unicast()
5017 if (qed_pf_validate_req_vf_mac(hwfn, mac, info)) { in qed_handle_pf_set_vf_unicast()
5089 vf_info->mac)) { in qed_update_mac_for_vf_trust_change()
5093 vf_info->mac, vf_id); in qed_update_mac_for_vf_trust_change()
5098 ether_addr_copy(vf_info->mac, force_mac); in qed_update_mac_for_vf_trust_change()
5115 vf_info->mac); in qed_update_mac_for_vf_trust_change()
5118 vf_info->mac, vf_id); in qed_update_mac_for_vf_trust_change()