Home | History | Annotate | Download | only in agr

Lines Matching defs:lsc

364 	struct lacp_softc *lsc = LACP_SOFTC(AGR_SC_FROM_PORT(port));
386 lacp_suppress_distributing(lsc, la);
391 if (lsc->lsc_active_aggregator == la) {
392 lacp_select_active_aggregator(lsc);
401 struct lacp_softc *lsc = LACP_SOFTC(AGR_SC_FROM_PORT(port));
421 lacp_suppress_distributing(lsc, la);
426 if (lsc->lsc_active_aggregator != la) {
427 lacp_select_active_aggregator(lsc);
435 struct lacp_softc *lsc = LACP_SOFTC(sc);
439 lsc->lsc_suppress_distributing = false;
471 struct lacp_softc *lsc = &isc->isc_lacpsc;
473 lsc->lsc_active_aggregator = NULL;
474 TAILQ_INIT(&lsc->lsc_aggregators);
475 callout_init(&lsc->lsc_transit_callout, 0);
476 callout_setfunc(&lsc->lsc_transit_callout, lacp_transit_expire, sc);
483 struct lacp_softc *lsc = &isc->isc_lacpsc;
487 callout_stop(&lsc->lsc_transit_callout);
488 KASSERT(TAILQ_EMPTY(&lsc->lsc_aggregators));
489 KASSERT(lsc->lsc_active_aggregator == NULL);
497 const struct lacp_softc *lsc = LACP_SOFTC(sc);
503 if (__predict_false(lsc->lsc_suppress_distributing &&
510 la = lsc->lsc_active_aggregator;
544 lacp_suppress_distributing(struct lacp_softc *lsc, struct lacp_aggregator *la)
547 if (lsc->lsc_active_aggregator != la) {
552 lsc->lsc_suppress_distributing = true;
554 callout_schedule(&lsc->lsc_transit_callout,
613 lacp_select_active_aggregator(struct lacp_softc *lsc)
624 TAILQ_FOREACH(la, &lsc->lsc_aggregators, la_q) {
637 la == lsc->lsc_active_aggregator)) {
647 if (lsc->lsc_active_aggregator != best_la) {
650 lacp_format_lagid_aggregator(lsc->lsc_active_aggregator,
659 if (lsc->lsc_active_aggregator != best_la) {
660 lsc->lsc_active_aggregator = best_la;
662 lacp_suppress_distributing(lsc, best_la);