summaryrefslogtreecommitdiffhomepage
path: root/vlan.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2015-05-26 14:41:47 +0200
committerFelix Fietkau <nbd@openwrt.org>2015-05-27 17:14:25 +0200
commit3653d721dad44c5a63790a3fd67e819dfb1dc428 (patch)
tree03c680b8774320b3bdc5375797b659a4926ce03f /vlan.c
parent6b74746cbf12d5b8421f68e99a4139abacec924b (diff)
netifd: Add old style vlan devices to device list
Just like other device types old vlan style devices are added to the device list which means they're displayed when the device list is displayed via ubus. Additionally global device setting config like default packet steering behavior is now also applied for old style vlan devices when doing a network reload. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vlan.c b/vlan.c
index 354e12f..3d0a4cf 100644
--- a/vlan.c
+++ b/vlan.c
@@ -130,7 +130,7 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create)
vldev->id = id;
vlan_dev_set_name(vldev, dev);
- device_init_virtual(&vldev->dev, &vlan_type, NULL);
+ device_init(&vldev->dev, &vlan_type, vldev->dev.ifname);
vldev->dev.default_config = true;
vldev->set_state = vldev->dev.set_state;