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.
This commit is contained in:
Andrew Thompson 2005-10-11 02:58:32 +00:00
parent 6d89d89383
commit 8eb8e358a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151227

View File

@ -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);
}