[OpenWrt-Devel] [PATCH] netifd: Add old style vlan devices to device list
Hans Dedecker
dedeckeh at gmail.com
Tue May 26 08:41:47 EDT 2015
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 at gmail.com>
---
vlan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list