summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2015-11-02 11:16:12 +0100
committerSteven Barth <steven@midlink.org>2015-11-04 01:12:25 +0100
commit4902ba2999dec02e82066d70ab6096b852a33007 (patch)
tree04ceb89fb4497849162a056664379fd3d75f2971 /device.h
parentfa64fe118945127007fc6f6f558d0630258790bd (diff)
downloadnetifd-4902ba2999dec02e82066d70ab6096b852a33007.tar.gz
device: Don't process link events anymore in device user specific callback handlers
Set link_state for all device types via the device_set_link API as all devices are registered in the device tree list making it possible to always get the device via device_get. The decice link state parameter will now actually reflect the corresponding kernel device carrier state in all cases. Before this change a vlan/macvlan device could still have link_state enabled if an interface was brought down; this was the case when the parent vlan/macvlan device was still enabled as the netlink link_state event would be dropped for vlan/macvlan devices due to keep_link_state in the function cb_rtnl_event. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'device.h')
-rw-r--r--device.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/device.h b/device.h
index 37814c8..4ff335d 100644
--- a/device.h
+++ b/device.h
@@ -58,8 +58,6 @@ struct device_type {
struct list_head list;
const char *name;
- bool keep_link_status;
-
const struct uci_blob_param_list *config_params;
struct device *(*create)(const char *name, struct blob_attr *attr);