diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-12-04 11:18:01 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-12-12 14:18:53 +0100 |
commit | 75024e11b395e5d4910efc407be09e76b6c6ff7c (patch) | |
tree | 119bf07711e22bb5ecdb53baeef81632e2bff44b | |
parent | 3de25bbc977fa935a77aebf3f8f7d9e9dfaa55b8 (diff) | |
download | NetworkManager-75024e11b395e5d4910efc407be09e76b6c6ff7c.tar.gz |
device: configure static number of VFs in unavailable state
Don't configure the static number of VFs when the device is realized
because the device could still be unmanaged. Instead, do it when the
device becomes managed.
-rw-r--r-- | src/devices/nm-device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 930b0ab603..7e1973eb82 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -4390,8 +4390,6 @@ realize_start_setup (NMDevice *self, nm_device_set_carrier_from_platform (self); - device_init_static_sriov_num_vfs (self); - nm_assert (!priv->stats.timeout_id); real_rate = _stats_refresh_rate_real (priv->stats.refresh_rate_ms); if (real_rate) @@ -14843,6 +14841,7 @@ _set_state_full (NMDevice *self, save_ip6_properties (self); if (priv->sys_iface_state == NM_DEVICE_SYS_IFACE_STATE_MANAGED) ip6_managed_setup (self); + device_init_static_sriov_num_vfs (self); } if (priv->sys_iface_state == NM_DEVICE_SYS_IFACE_STATE_MANAGED) { |