projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59a7a68
)
networkd: link - degrade failed UP to warning
author
Tom Gundersen
<teg@jklm.no>
Sat, 8 Mar 2014 00:08:30 +0000
(
01:08
+0100)
committer
Tom Gundersen
<teg@jklm.no>
Sat, 8 Mar 2014 00:12:46 +0000
(
01:12
+0100)
Something else may still bring the link up, so don't enter failed state prematurely.
src/network/networkd-link.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-link.c
b/src/network/networkd-link.c
index
785e8d5
..
9fb8d9f
100644
(file)
--- a/
src/network/networkd-link.c
+++ b/
src/network/networkd-link.c
@@
-1056,15
+1056,13
@@
static int link_up_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata) {
return 1;
r = sd_rtnl_message_get_errno(m);
- if (r < 0)
{
- log_struct_link(LOG_
ERR
, link,
+ if (r < 0)
+ log_struct_link(LOG_
WARNING
, link,
"MESSAGE=%s: could not bring up interface: %s",
link->ifname, strerror(-r),
"ERRNO=%d", -r,
NULL);
- link_enter_failed(link);
return 1;
- }
link_update_flags(link, link->flags | IFF_UP);