summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2005-10-11 02:58:32 +0000
committerthompsa <thompsa@FreeBSD.org>2005-10-11 02:58:32 +0000
commitbf974ebd04697f06818d87f1eb221687e05cabe3 (patch)
tree80d0149e93a22f4e972ee801231ac34f0bfac1be /sys/net
parent8f3a1bba0564d254ed463e21056e6f47b05158b4 (diff)
downloadFreeBSD-src-bf974ebd04697f06818d87f1eb221687e05cabe3.zip
FreeBSD-src-bf974ebd04697f06818d87f1eb221687e05cabe3.tar.gz
Do not unconditionally set a spanning tree port to forwarding as the link may be
down when we attach. We wont get updated until a linkstate change happens. Go via bstp_ifupdstatus() which checks the media status first.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bridgestp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index 582d5a6..76250f1 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -883,7 +883,7 @@ bstp_initialization(struct bridge_softc *sc)
LIST_FOREACH(bif, &sc->sc_iflist, bif_next) {
if (bif->bif_flags & IFBIF_STP)
- bstp_enable_port(sc, bif);
+ bstp_ifupdstatus(sc, bif);
else
bstp_disable_port(sc, bif);
}
OpenPOWER on IntegriCloud