macvlan: Use macvlan as device type name
authorHans Dedecker <dedeckeh@gmail.com>
Fri, 23 Sep 2016 13:08:19 +0000 (15:08 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 26 Sep 2016 09:51:19 +0000 (11:51 +0200)
Fixes creation of macvlan devices by UCI due to device handlers rework

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
macvlan.c

index 01a48cd..021d394 100644 (file)
--- a/macvlan.c
+++ b/macvlan.c
@@ -254,7 +254,7 @@ macvlan_create(const char *name, struct device_type *devtype,
 }
 
 static struct device_type macvlan_device_type = {
-       .name = "MAC VLAN",
+       .name = "macvlan",
        .config_params = &macvlan_attr_list,
        .create = macvlan_create,
        .config_init = macvlan_config_init,