diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-07-12 23:46:32 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-07-12 23:46:32 +0200 |
commit | c153c9fa422da41fc6acd07dc5336b4abb6b1814 (patch) | |
tree | 8034d68f396930a964afe29f3391af1306447f25 | |
parent | a2bc078dd3187752d18163266ccbf6c40803d5c9 (diff) |
apply basic device settings for hotplug devices, e.g. mtu and txqueuelen
-rw-r--r-- | ubus.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |