From 56ac4302e20c910a87bfc933138eb38f4c21af7a Mon Sep 17 00:00:00 2001 From: thompsa Date: Thu, 9 Nov 2006 22:50:49 +0000 Subject: 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. --- sys/net/bridgestp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/net/bridgestp.h') 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; -- cgit v1.1