From df6e8892dcf8f9e32691ed7cad1654ead2b4060b Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Wed, 2 Aug 2006 01:36:40 +0000 Subject: [PATCH] Be sure to disable the port when removing it from STP. --- sys/net/bridgestp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index d58cbc0a78a5..86e79e988cd9 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -1267,6 +1267,8 @@ bstp_delete(struct bstp_port *bp) KASSERT(bp->bp_active == 1, ("not a bstp member")); BSTP_LOCK(bs); + if (bp->bp_state != BSTP_IFSTATE_DISABLED) + bstp_disable_port(bs, bp); LIST_REMOVE(bp, bp_next); BSTP_UNLOCK(bs); bp->bp_bs = NULL;