summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-20 22:07:18 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-10-20 22:07:20 +0200
commit5a4eb870afc69e9fa93fdccb8a42f75e8e357f4e (patch)
tree894f3c5937cf1f8941f0121f75c6dc283cce2bec /device.h
parentfd7d5b43d85b2e3bb2eee98644bca833c6202048 (diff)
device: make link status detection optional for vlan devices
Fixes a race condition that triggers endless link loss / detect calls when VLAN devices are created. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'device.h')
-rw-r--r--device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/device.h b/device.h
index 73b2656..adf72c5 100644
--- a/device.h
+++ b/device.h
@@ -47,6 +47,8 @@ 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);