mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 02:30:08 +01:00
platform: ensure the platform cache is up to date during nm_platform_ip_address_sync()
Since commit528a63d9cc('platform: avoid unnecessary configuration of IP address in nm_platform_ip_address_sync()'), we no longer configure the IP address if it is in the platform cache. But the cache might not be up to date. Process any pending netlink events. https://bugzilla.redhat.com/show_bug.cgi?id=2073926 Fixes:528a63d9cc('platform: avoid unnecessary configuration of IP address in nm_platform_ip_address_sync()') (cherry picked from commit7f427ac4e6)
This commit is contained in:
parent
202657c5d2
commit
e92639d89c
1 changed files with 3 additions and 0 deletions
|
|
@ -4125,6 +4125,9 @@ nm_platform_ip_address_sync(NMPlatform *self,
|
|||
}
|
||||
}
|
||||
|
||||
/* ensure we have the platform cache up to date. */
|
||||
nm_platform_process_events(self);
|
||||
|
||||
/* @plat_addresses for IPv6 must be sorted in decreasing priority order (highest priority addresses first).
|
||||
* IPv4 are probably unsorted or sorted with lowest priority first, but their order doesn't matter because
|
||||
* we check the "secondary" flag. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue