MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bstp_destroy

Function bstp_destroy

freebsd/net/bridgestp.c:2269–2279  ·  view source on GitHub ↗

* The bstp_port structure is about to be freed by the parent bridge. */

Source from the content-addressed store, hash-verified

2267 * The bstp_port structure is about to be freed by the parent bridge.
2268 */
2269void
2270bstp_destroy(struct bstp_port *bp)
2271{
2272 KASSERT(bp->bp_active == 0, ("port is still attached"));
2273 taskqueue_drain(taskqueue_swi, &bp->bp_statetask);
2274 taskqueue_drain(taskqueue_swi, &bp->bp_rtagetask);
2275 taskqueue_drain(taskqueue_swi, &bp->bp_mediatask);
2276
2277 if (bp->bp_bs->bs_root_port == bp)
2278 bstp_assign_roles(bp->bp_bs);
2279}

Callers 1

bridge_delete_memberFunction · 0.85

Calls 2

taskqueue_drainFunction · 0.85
bstp_assign_rolesFunction · 0.85

Tested by

no test coverage detected