projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c057e71
)
system-dummy: fix resolving ifindex
author
Felix Fietkau
<nbd@nbd.name>
Sat, 18 Jul 2020 14:03:18 +0000
(16:03 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Sat, 18 Jul 2020 15:41:46 +0000
(17:41 +0200)
Fixes bringup of devices
Signed-off-by: Felix Fietkau <nbd@nbd.name>
system-dummy.c
patch
|
blob
|
history
diff --git
a/system-dummy.c
b/system-dummy.c
index 0b1f1e0b8ede4fe4c0e494df0dea4c5529d64eb6..080e5a2464f3f305544fd5926bc28d2a75da1738 100644
(file)
--- a/
system-dummy.c
+++ b/
system-dummy.c
@@
-107,11
+107,11
@@
void system_if_get_settings(struct device *dev, struct device_settings *s)
void system_if_clear_state(struct device *dev)
{
+ device_set_ifindex(dev, system_if_resolve(dev));
}
int system_if_check(struct device *dev)
{
- dev->ifindex = 0;
device_set_present(dev, true);
device_set_link(dev, true);
@@
-120,7
+120,7
@@
int system_if_check(struct device *dev)
int system_if_resolve(struct device *dev)
{
- return
0
;
+ return
1
;
}
struct device *