From c153c9fa422da41fc6acd07dc5336b4abb6b1814 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 12 Jul 2012 23:46:32 +0200 Subject: [PATCH] apply basic device settings for hotplug devices, e.g. mtu and txqueuelen --- ubus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ubus.c b/ubus.c index 0f19607..0d23b77 100644 --- 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); -- 2.25.1