mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 14:35:25 +00:00
util: rename virHostdevNetConfigRestore() to virHostdevRestoreNetConfig()
This commit is contained in:
parent
6ec36b0699
commit
43da691582
@ -522,7 +522,7 @@ virHostdevSetNetConfig(virDomainHostdevDefPtr hostdev,
|
||||
* case, try to find in the old state dir.
|
||||
*/
|
||||
static int
|
||||
virHostdevNetConfigRestore(virDomainHostdevDefPtr hostdev,
|
||||
virHostdevRestoreNetConfig(virDomainHostdevDefPtr hostdev,
|
||||
const char *stateDir,
|
||||
const char *oldStateDir)
|
||||
{
|
||||
@ -872,7 +872,7 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr mgr,
|
||||
resetvfnetconfig:
|
||||
if (last_processed_hostdev_vf >= 0) {
|
||||
for (i = 0; i <= last_processed_hostdev_vf; i++)
|
||||
virHostdevNetConfigRestore(hostdevs[i], mgr->stateDir, NULL);
|
||||
virHostdevRestoreNetConfig(hostdevs[i], mgr->stateDir, NULL);
|
||||
}
|
||||
|
||||
reattachdevs:
|
||||
@ -933,7 +933,7 @@ virHostdevReattachPCIDevice(virHostdevManagerPtr mgr,
|
||||
}
|
||||
|
||||
/* @oldStateDir:
|
||||
* For upgrade purpose: see virHostdevNetConfigRestore
|
||||
* For upgrade purpose: see virHostdevRestoreNetConfig
|
||||
*/
|
||||
void
|
||||
virHostdevReAttachPCIDevices(virHostdevManagerPtr mgr,
|
||||
@ -1034,7 +1034,7 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr mgr,
|
||||
if (actual) {
|
||||
VIR_DEBUG("Restoring network configuration of PCI device %s",
|
||||
virPCIDeviceGetName(actual));
|
||||
virHostdevNetConfigRestore(hostdev, mgr->stateDir,
|
||||
virHostdevRestoreNetConfig(hostdev, mgr->stateDir,
|
||||
oldStateDir);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user