projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not hardcode config package in config_init_package()
[project/netifd.git]
/
vlan.c
diff --git
a/vlan.c
b/vlan.c
index
3085868
..
1e06280
100644
(file)
--- a/
vlan.c
+++ b/
vlan.c
@@
-69,6
+69,7
@@
static struct device *get_vlan_device(struct device *dev, int id, bool create)
{
static const struct device_type vlan_type = {
.name = "VLAN",
{
static const struct device_type vlan_type = {
.name = "VLAN",
+ .config_params = &device_attr_list,
.free = free_vlan_if,
};
struct vlan_device *vldev;
.free = free_vlan_if,
};
struct vlan_device *vldev;
@@
-93,6
+94,7
@@
static struct device *get_vlan_device(struct device *dev, int id, bool create)
snprintf(vldev->dev.ifname, IFNAMSIZ, "%s.%d", dev->ifname, id);
device_init(&vldev->dev, &vlan_type, NULL);
snprintf(vldev->dev.ifname, IFNAMSIZ, "%s.%d", dev->ifname, id);
device_init(&vldev->dev, &vlan_type, NULL);
+ vldev->dev.default_config = true;
vldev->set_state = vldev->dev.set_state;
vldev->dev.set_state = vlan_set_device_state;
vldev->set_state = vldev->dev.set_state;
vldev->dev.set_state = vlan_set_device_state;