| 2249 | } |
| 2250 | |
| 2251 | void |
| 2252 | bstp_disable(struct bstp_port *bp) |
| 2253 | { |
| 2254 | struct bstp_state *bs = bp->bp_bs; |
| 2255 | |
| 2256 | KASSERT(bp->bp_active == 1, ("not a bstp member")); |
| 2257 | |
| 2258 | BSTP_LOCK(bs); |
| 2259 | bstp_disable_port(bs, bp); |
| 2260 | LIST_REMOVE(bp, bp_next); |
| 2261 | bp->bp_active = 0; |
| 2262 | bstp_reinit(bs); |
| 2263 | BSTP_UNLOCK(bs); |
| 2264 | } |
| 2265 | |
| 2266 | /* |
| 2267 | * The bstp_port structure is about to be freed by the parent bridge. |
no test coverage detected