summaryrefslogtreecommitdiffhomepage
path: root/vlan.c
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 /vlan.c
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 'vlan.c')
-rw-r--r--vlan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vlan.c b/vlan.c
index 28b1441..354e12f 100644
--- a/vlan.c
+++ b/vlan.c
@@ -102,6 +102,7 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create)
static const struct device_type vlan_type = {
.name = "VLAN",
.config_params = &device_attr_list,
+ .keep_link_status = true,
.free = free_vlan_if,
};
struct vlan_device *vldev;