projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7144e7
)
network/netdev: drop spurious state from the condition to create stacked netdevs
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 6 Dec 2021 22:18:29 +0000
(07:18 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 7 Dec 2021 06:58:25 +0000
(15:58 +0900)
Stacked netdevs are requested when the underlying interface is in
configuring state.
src/network/netdev/netdev.c
patch
|
blob
|
history
diff --git
a/src/network/netdev/netdev.c
b/src/network/netdev/netdev.c
index 7797f2a693d6f51fb319918ffcbd77817b4f9e91..b4121dd4735d6d8d1848e5c2e67e2f15309a6e7b 100644
(file)
--- a/
src/network/netdev/netdev.c
+++ b/
src/network/netdev/netdev.c
@@
-617,8
+617,10
@@
static bool netdev_is_ready_to_create(NetDev *netdev, Link *link) {
if (netdev->state != NETDEV_STATE_LOADING)
return false;
- if (!IN_SET(link->state, LINK_STATE_INITIALIZED, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED))
+
+ if (!IN_SET(link->state, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED))
return false;
+
if (netdev_get_create_type(netdev) == NETDEV_CREATE_AFTER_CONFIGURED &&
link->state != LINK_STATE_CONFIGURED)
return false;