diff options
author | thompsa <thompsa@FreeBSD.org> | 2005-10-11 02:58:32 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2005-10-11 02:58:32 +0000 |
commit | bf974ebd04697f06818d87f1eb221687e05cabe3 (patch) | |
tree | 80d0149e93a22f4e972ee801231ac34f0bfac1be | |
parent | 8f3a1bba0564d254ed463e21056e6f47b05158b4 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/net/bridgestp.c | 2 |
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); } |