diff --git a/api/v1/helper.go b/api/v1/helper.go index 712a548740..97d4d168c4 100644 --- a/api/v1/helper.go +++ b/api/v1/helper.go @@ -271,6 +271,14 @@ func NeedToUpdateSriov(ifaceSpec *Interface, ifaceStatus *InterfaceExt) bool { return true } + if strings.EqualFold(ifaceSpec.LinkType, consts.LinkTypeETH) { + if len(vfStatus.Mac) == 0 { + log.V(2).Info("NeedToUpdateSriov(): VF MAC Address needs update", + "vf", vfStatus.VfID, "current", vfStatus.Mac) + return true + } + } + // this is needed to be sure the admin mac address is configured as expected if ifaceSpec.ExternallyManaged { log.V(2).Info("NeedToUpdateSriov(): need to update the device as it's externally manage",