FreeBSD/sys/net/bridgestp.c
/*
 * Notify the bridge that a port state has changed, we need to do this from a
 * taskqueue to avoid a LOR.
 */
Notify the bridge that a port state has changed, we need to do this from a
taskqueue to avoid a LOR.
Notify the bridge that a port state has changed we need to do this from a taskqueue to avoid a LOR .
static void
bstp_notify_state(void *arg, int pending)
{
	struct bstp_port *bp = (struct bstp_port *)arg;
	struct bstp_state *bs = bp->bp_bs;
	if (bp->bp_active == 1 && bs->bs_state_cb != NULL)
		(*bs->bs_state_cb)(bp->bp_ifp, bp->bp_state);
}
static void bstp_notify_state ( void * arg , int pending ) { struct bstp_port * bp = ( struct bstp_port * ) arg ; struct bstp_state * bs = bp -> bp_bs ; if ( bp -> bp_active == 1 && bs -> bs_state_cb != NULL ) ( * bs -> bs_state_cb ) ( bp -> bp_ifp , bp -> bp_state ) ; }
Notify the bridge that a port state has changed, we need to do this from a
 taskqueue to avoid a LOR.
Notify the bridge that a port state has changed we need to do this from a taskqueue to avoid a LOR .