summaryrefslogtreecommitdiffstats
path: root/sys/net/bridgestp.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2006-11-09 22:50:49 +0000
committerthompsa <thompsa@FreeBSD.org>2006-11-09 22:50:49 +0000
commit56ac4302e20c910a87bfc933138eb38f4c21af7a (patch)
tree52477fda529c96e17848fe9963901583808b3286 /sys/net/bridgestp.h
parent1a66ce5fa5b182346f2d65a791047524fd16bc42 (diff)
downloadFreeBSD-src-56ac4302e20c910a87bfc933138eb38f4c21af7a.zip
FreeBSD-src-56ac4302e20c910a87bfc933138eb38f4c21af7a.tar.gz
MFp4
- Each stp port is added sequentially so it was possible for our bridgeid to change every time because the new port has a lower MAC address. Instead just find the lowest MAC address from all Ethernet adapters in the machine as the value only needs to be unique, this stops a lot of churn on the protocol. - Update the states after enabling or disabling a port. - Keep tabs if we have been stopped or started by our parent bridge. - The callout only needs to be drained before destroying the mutex, move it to bstp_detach.
Diffstat (limited to 'sys/net/bridgestp.h')
-rw-r--r--sys/net/bridgestp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/bridgestp.h b/sys/net/bridgestp.h
index 6b16af20..20c1eff 100644
--- a/sys/net/bridgestp.h
+++ b/sys/net/bridgestp.h
@@ -326,6 +326,7 @@ struct bstp_port {
*/
struct bstp_state {
LIST_ENTRY(bstp_state) bs_list;
+ uint8_t bs_running;
struct mtx bs_mtx;
struct bstp_pri_vector bs_bridge_pv;
struct bstp_pri_vector bs_root_pv;
OpenPOWER on IntegriCloud