summaryrefslogtreecommitdiffstats
path: root/sys/net/if_bridgevar.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2006-03-06 02:28:41 +0000
committerthompsa <thompsa@FreeBSD.org>2006-03-06 02:28:41 +0000
commit19a0cafcc290a57585d88743e0216bf03d4cb9fb (patch)
tree58473077b11a316258be2903930f133daee44176 /sys/net/if_bridgevar.h
parentb5d256606ebd454262b0eac9a22b6bb73049325b (diff)
downloadFreeBSD-src-19a0cafcc290a57585d88743e0216bf03d4cb9fb.zip
FreeBSD-src-19a0cafcc290a57585d88743e0216bf03d4cb9fb.tar.gz
If we miss the LINK_UP event from the network interface then the bridge port
will remain in the disabled state until another link event happens in the future (if at all). Add a timer to periodically check the interface state and recover. Reported by: Nik Lam <freebsdnik j2d.lam.net.au> MFC after: 3 days
Diffstat (limited to 'sys/net/if_bridgevar.h')
-rw-r--r--sys/net/if_bridgevar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_bridgevar.h b/sys/net/if_bridgevar.h
index c512880..4ac7307 100644
--- a/sys/net/if_bridgevar.h
+++ b/sys/net/if_bridgevar.h
@@ -301,6 +301,7 @@ struct bridge_softc {
LIST_HEAD(, bridge_rtnode) sc_rtlist; /* list version of above */
uint32_t sc_rthash_key; /* key for hash */
LIST_HEAD(, bridge_iflist) sc_spanlist; /* span ports list */
+ struct bridge_timer sc_link_timer;
};
#define BRIDGE_LOCK_INIT(_sc) do { \
OpenPOWER on IntegriCloud