Revert "vlan: reset device state on init"
[project/netifd.git] / macvlan.c
index 9c03cd8..019a7ff 100644 (file)
--- a/macvlan.c
+++ b/macvlan.c
@@ -44,6 +44,9 @@ static const struct blobmsg_policy macvlan_attrs[__MACVLAN_ATTR_MAX] = {
 static const struct uci_blob_param_list macvlan_attr_list = {
        .n_params = __MACVLAN_ATTR_MAX,
        .params = macvlan_attrs,
+
+       .n_next = 1,
+       .next = { &device_attr_list },
 };
 
 struct macvlan_device {
@@ -255,6 +258,7 @@ macvlan_create(const char *name, struct blob_attr *attr)
 const struct device_type macvlan_device_type = {
        .name = "MAC VLAN",
        .config_params = &macvlan_attr_list,
+       .keep_link_status = true,
 
        .create = macvlan_create,
        .config_init = macvlan_config_init,