mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-17 10:30:31 +01:00
ovs: wait for the link to be ready before activating
When activating an ovs-interface we already wait for the cloned MAC address to be set, ifindex is present and platform link also present but in some cases this is not enough. If an udev rule is in place it might modify the interface when it is in a later stage of the activation causing some race conditions or problems. In order to solve that, we must wait until the link is fully initialized. (cherry picked from commit83bf7a8cdb) (cherry picked from commit00e178351b) (cherry picked from commit6328a1a0d1) (cherry picked from commitdbc455a25e)
This commit is contained in:
parent
690d0a8682
commit
b054d09ff1
1 changed files with 2 additions and 0 deletions
|
|
@ -152,6 +152,8 @@ check_waiting_for_link(NMDevice *device, const char *from)
|
|||
reason = "no ifindex";
|
||||
} else if (!(pllink = nm_platform_link_get(platform, ip_ifindex))) {
|
||||
reason = "platform link not found";
|
||||
} else if (!pllink->initialized) {
|
||||
reason = "link is not ready yet";
|
||||
} else if (priv->wait_link.cloned_mac
|
||||
&& !nm_utils_hwaddr_matches(priv->wait_link.cloned_mac,
|
||||
-1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue