mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-28 01:40:33 +01:00
core: reload config for active devices
When NetworkManager is reloaded the config from active devices is not being reloaded properly. Related: https://bugzilla.redhat.com/1852445 Fixes:121c58f0c4('core: set number of SR-IOV VFs asynchronously') Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> (cherry picked from commitff9b64c923)
This commit is contained in:
parent
e70b8c6ca6
commit
e2b75a3886
1 changed files with 3 additions and 2 deletions
|
|
@ -5976,9 +5976,10 @@ config_changed(NMConfig * config,
|
|||
{
|
||||
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE(self);
|
||||
|
||||
if (priv->state <= NM_DEVICE_STATE_DISCONNECTED || priv->state > NM_DEVICE_STATE_ACTIVATED) {
|
||||
if (priv->state <= NM_DEVICE_STATE_DISCONNECTED || priv->state >= NM_DEVICE_STATE_ACTIVATED) {
|
||||
priv->ignore_carrier = nm_config_data_get_ignore_carrier(config_data, self);
|
||||
if (NM_FLAGS_HAS(changes, NM_CONFIG_CHANGE_VALUES))
|
||||
if (NM_FLAGS_HAS(changes, NM_CONFIG_CHANGE_VALUES)
|
||||
&& !nm_device_get_applied_setting(self, NM_TYPE_SETTING_SRIOV))
|
||||
device_init_static_sriov_num_vfs(self);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue