mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-04 20:15:19 +00:00
Correct indent errors in the function qemuDomainNetsRestart
qemuDomainNetsRestart indents with 3 spaces.
This patch is to correct it.
Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com>
(cherry picked from commit 0d631e9182
)
This commit is contained in:
parent
4a9f92f283
commit
d0714c927c
@ -420,28 +420,28 @@ static void qemuDomainNetsRestart(void *payload,
|
||||
const void *name ATTRIBUTE_UNUSED,
|
||||
void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
int i;
|
||||
virDomainObjPtr vm = (virDomainObjPtr)payload;
|
||||
virDomainDefPtr def = vm->def;
|
||||
int i;
|
||||
virDomainObjPtr vm = (virDomainObjPtr)payload;
|
||||
virDomainDefPtr def = vm->def;
|
||||
|
||||
virDomainObjLock(vm);
|
||||
virDomainObjLock(vm);
|
||||
|
||||
for (i = 0; i < def->nnets; i++) {
|
||||
virDomainNetDefPtr net = def->nets[i];
|
||||
if (virDomainNetGetActualType(net) == VIR_DOMAIN_NET_TYPE_DIRECT &&
|
||||
virDomainNetGetActualDirectMode(net) == VIR_NETDEV_MACVLAN_MODE_VEPA) {
|
||||
VIR_DEBUG("VEPA mode device %s active in domain %s. Reassociating.",
|
||||
net->ifname, def->name);
|
||||
ignore_value(virNetDevMacVLanRestartWithVPortProfile(net->ifname,
|
||||
net->mac,
|
||||
virDomainNetGetActualDirectDev(net),
|
||||
def->uuid,
|
||||
virDomainNetGetActualVirtPortProfile(net),
|
||||
VIR_NETDEV_VPORT_PROFILE_OP_CREATE));
|
||||
}
|
||||
}
|
||||
for (i = 0; i < def->nnets; i++) {
|
||||
virDomainNetDefPtr net = def->nets[i];
|
||||
if (virDomainNetGetActualType(net) == VIR_DOMAIN_NET_TYPE_DIRECT &&
|
||||
virDomainNetGetActualDirectMode(net) == VIR_NETDEV_MACVLAN_MODE_VEPA) {
|
||||
VIR_DEBUG("VEPA mode device %s active in domain %s. Reassociating.",
|
||||
net->ifname, def->name);
|
||||
ignore_value(virNetDevMacVLanRestartWithVPortProfile(net->ifname,
|
||||
net->mac,
|
||||
virDomainNetGetActualDirectDev(net),
|
||||
def->uuid,
|
||||
virDomainNetGetActualVirtPortProfile(net),
|
||||
VIR_NETDEV_VPORT_PROFILE_OP_CREATE));
|
||||
}
|
||||
}
|
||||
|
||||
virDomainObjUnlock(vm);
|
||||
virDomainObjUnlock(vm);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user