Lines Matching defs:mac
133 if (!is_zero_ether_addr(vf->mac)) {
134 efx_ef10_vport_del_mac(efx, vf->vport_id, vf->mac);
135 eth_zero_addr(vf->mac);
172 rc = efx_ef10_vport_add_mac(efx, vf->vport_id, vf->mac);
174 eth_zero_addr(vf->mac);
198 eth_random_addr(nic_data->vf[i].mac);
471 u8 *mac)
479 ether_addr_copy(MCDI_PTR(inbuf, VPORT_DEL_MAC_ADDRESS_IN_MACADDR), mac);
487 int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf_i, const u8 *mac)
515 if (!is_zero_ether_addr(vf->mac)) {
516 rc = efx_ef10_vport_del_vf_mac(efx, vf->vport_id, vf->mac);
521 if (!is_zero_ether_addr(mac)) {
522 rc = efx_ef10_vport_add_mac(efx, vf->vport_id, mac);
527 eth_hw_addr_set(vf->efx->net_dev, mac);
530 ether_addr_copy(vf->mac, mac);
549 eth_zero_addr(vf->mac);
598 if (!is_zero_ether_addr(vf->mac)) {
599 rc = efx_ef10_vport_del_mac(efx, vf->vport_id, vf->mac);
622 if (!is_zero_ether_addr(vf->mac)) {
623 rc2 = efx_ef10_vport_add_mac(efx, vf->vport_id, vf->mac);
625 eth_zero_addr(vf->mac);
788 ether_addr_copy(ivf->mac, vf->mac);