- case DEV_EVENT_LINK_UP:
- device_set_link(&mvdev->dev, true);
- break;
- case DEV_EVENT_LINK_DOWN:
- device_set_link(&mvdev->dev, false);
- break;
mvdev = container_of(dev, struct macvlan_device, dev);
device_remove_user(&mvdev->parent);
mvdev = container_of(dev, struct macvlan_device, dev);
device_remove_user(&mvdev->parent);
struct macvlan_device *mvdev;
mvdev = container_of(dev, struct macvlan_device, dev);
struct macvlan_device *mvdev;
mvdev = container_of(dev, struct macvlan_device, dev);
blobmsg_parse(device_attr_list.params, __DEV_ATTR_MAX, tb_dev,
blob_data(attr), blob_len(attr));
blobmsg_parse(device_attr_list.params, __DEV_ATTR_MAX, tb_dev,
blob_data(attr), blob_len(attr));
-macvlan_create(const char *name, struct blob_attr *attr)
+macvlan_create(const char *name, struct device_type *devtype,
+ struct blob_attr *attr)
.create = macvlan_create,
.config_init = macvlan_config_init,
.reload = macvlan_reload,
.free = macvlan_free,
.dump_info = macvlan_dump_info,
};
.create = macvlan_create,
.config_init = macvlan_config_init,
.reload = macvlan_reload,
.free = macvlan_free,
.dump_info = macvlan_dump_info,
};