mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-20 14:03:39 +03:00
network: make link_check_ready() return earlier if the link is not in 'configuring' state
This commit is contained in:
parent
3336e946da
commit
5f58af25e6
@ -1086,8 +1086,11 @@ void link_check_ready(Link *link) {
|
||||
|
||||
assert(link);
|
||||
|
||||
if (IN_SET(link->state, LINK_STATE_FAILED, LINK_STATE_LINGER)) {
|
||||
log_link_debug(link, "%s(): link is in failed or linger state.", __func__);
|
||||
if (link->state == LINK_STATE_CONFIGURED)
|
||||
return;
|
||||
|
||||
if (link->state != LINK_STATE_CONFIGURING) {
|
||||
log_link_debug(link, "%s(): link is in %s state.", __func__, link_state_to_string(link->state));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1189,8 +1192,7 @@ void link_check_ready(Link *link) {
|
||||
}
|
||||
}
|
||||
|
||||
if (link->state != LINK_STATE_CONFIGURED)
|
||||
link_enter_configured(link);
|
||||
link_enter_configured(link);
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user