mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-06 21:15:22 +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,
|
const void *name ATTRIBUTE_UNUSED,
|
||||||
void *data ATTRIBUTE_UNUSED)
|
void *data ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
virDomainObjPtr vm = (virDomainObjPtr)payload;
|
virDomainObjPtr vm = (virDomainObjPtr)payload;
|
||||||
virDomainDefPtr def = vm->def;
|
virDomainDefPtr def = vm->def;
|
||||||
|
|
||||||
virDomainObjLock(vm);
|
virDomainObjLock(vm);
|
||||||
|
|
||||||
for (i = 0; i < def->nnets; i++) {
|
for (i = 0; i < def->nnets; i++) {
|
||||||
virDomainNetDefPtr net = def->nets[i];
|
virDomainNetDefPtr net = def->nets[i];
|
||||||
if (virDomainNetGetActualType(net) == VIR_DOMAIN_NET_TYPE_DIRECT &&
|
if (virDomainNetGetActualType(net) == VIR_DOMAIN_NET_TYPE_DIRECT &&
|
||||||
virDomainNetGetActualDirectMode(net) == VIR_NETDEV_MACVLAN_MODE_VEPA) {
|
virDomainNetGetActualDirectMode(net) == VIR_NETDEV_MACVLAN_MODE_VEPA) {
|
||||||
VIR_DEBUG("VEPA mode device %s active in domain %s. Reassociating.",
|
VIR_DEBUG("VEPA mode device %s active in domain %s. Reassociating.",
|
||||||
net->ifname, def->name);
|
net->ifname, def->name);
|
||||||
ignore_value(virNetDevMacVLanRestartWithVPortProfile(net->ifname,
|
ignore_value(virNetDevMacVLanRestartWithVPortProfile(net->ifname,
|
||||||
net->mac,
|
net->mac,
|
||||||
virDomainNetGetActualDirectDev(net),
|
virDomainNetGetActualDirectDev(net),
|
||||||
def->uuid,
|
def->uuid,
|
||||||
virDomainNetGetActualVirtPortProfile(net),
|
virDomainNetGetActualVirtPortProfile(net),
|
||||||
VIR_NETDEV_VPORT_PROFILE_OP_CREATE));
|
VIR_NETDEV_VPORT_PROFILE_OP_CREATE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virDomainObjUnlock(vm);
|
virDomainObjUnlock(vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user