mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 09:58:07 +02:00
core: always reset ethtool autoneg/speed to fix reactivation
The check whether the current setting are already as expected are wrong. The reason is that nm_platform_ethtool_set_link_settings() also sets the announced ethernet modes, but nm_platform_ethtool_get_link_settings() does not give them. That means, we cannot check whether the current link configuration is the same, because the getter doesn't give that information. Consequently, we must not skip the setting on the assumption that there is nothing to change. This bug has bad effects. If the device is currently activated with ethtool option set, then re-activating the profile will result in wrongly skipping the update.
This commit is contained in:
parent
bd92df3e56
commit
78b3711522
1 changed files with 0 additions and 6 deletions
|
|
@ -924,12 +924,6 @@ link_negotiation_set(NMDevice *device)
|
|||
return;
|
||||
}
|
||||
|
||||
/* If link negotiation setting are already in place do nothing and return with success */
|
||||
if (!!autoneg == !!link_autoneg && speed == link_speed && duplex == link_duplex) {
|
||||
_LOGD(LOGD_DEVICE, "set-link: link negotiation is already configured");
|
||||
return;
|
||||
}
|
||||
|
||||
if (autoneg && !speed && !duplex)
|
||||
_LOGD(LOGD_DEVICE, "set-link: configure auto-negotiation");
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue