mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 09:08:18 +02:00
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.
(cherry picked from commit 75024e11b3)
This commit is contained in:
parent
20f38e09ec
commit
ca45433f4f
1 changed files with 1 additions and 2 deletions
|
|
@ -4303,8 +4303,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)
|
||||
|
|
@ -14675,6 +14673,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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue