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:
a2bc078
)
apply basic device settings for hotplug devices, e.g. mtu and txqueuelen
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 12 Jul 2012 21:46:32 +0000
(23:46 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 12 Jul 2012 21:46:32 +0000
(23:46 +0200)
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index 0f19607fecdb8714b4388b119007dc77dff5df3e..0d23b77eeb20245ea4011f163c77d8e9e96e778d 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-564,6
+564,10
@@
netifd_iface_handle_device(struct ubus_context *ctx, struct ubus_object *obj,
if (add) {
device_set_present(dev, true);
+ if (iface->device_config)
+ device_set_config(dev, &simple_device_type, iface->config);
+
+ system_if_apply_settings(dev, &dev->settings);
ret = interface_add_link(iface, dev);
} else {
ret = interface_remove_link(iface, dev);