projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8714f17
)
system-linux: always set the ifindex for hotplug devices on init
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 10 May 2014 18:03:22 +0000
(20:03 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 10 May 2014 18:03:22 +0000
(20:03 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index b513948cd7d4df4056acb08d0fe2b1cccaa8d599..7a194caec9dd9e6054ae4d2396fff551510bca47 100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-611,11
+611,8
@@
void system_if_clear_state(struct device *dev)
static char buf[256];
char *bridge;
- if (dev->external)
- return;
-
device_set_ifindex(dev, system_if_resolve(dev));
- if (!dev->ifindex)
+ if (
dev->external ||
!dev->ifindex)
return;
system_if_flags(dev->ifname, 0, IFF_UP);