Lines 476-485
lagg_register_vlan(void *arg, struct ifnet *ifp, u
Link Here
|
476 |
if (ifp->if_softc != arg) /* Not our event */ |
476 |
if (ifp->if_softc != arg) /* Not our event */ |
477 |
return; |
477 |
return; |
478 |
|
478 |
|
479 |
LAGG_RLOCK(); |
479 |
sx_slock(&sc->sc_sx); |
480 |
CK_SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) |
480 |
CK_SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) |
481 |
EVENTHANDLER_INVOKE(vlan_config, lp->lp_ifp, vtag); |
481 |
EVENTHANDLER_INVOKE(vlan_config, lp->lp_ifp, vtag); |
482 |
LAGG_RUNLOCK(); |
482 |
sx_sunlock(&sc->sc_sx); |
483 |
} |
483 |
} |
484 |
|
484 |
|
485 |
/* |
485 |
/* |
Lines 495-504
lagg_unregister_vlan(void *arg, struct ifnet *ifp,
Link Here
|
495 |
if (ifp->if_softc != arg) /* Not our event */ |
495 |
if (ifp->if_softc != arg) /* Not our event */ |
496 |
return; |
496 |
return; |
497 |
|
497 |
|
498 |
LAGG_RLOCK(); |
498 |
sx_slock(&sc->sc_sx); |
499 |
CK_SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) |
499 |
CK_SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) |
500 |
EVENTHANDLER_INVOKE(vlan_unconfig, lp->lp_ifp, vtag); |
500 |
EVENTHANDLER_INVOKE(vlan_unconfig, lp->lp_ifp, vtag); |
501 |
LAGG_RUNLOCK(); |
501 |
sx_sunlock(&sc->sc_sx); |
502 |
} |
502 |
} |
503 |
|
503 |
|
504 |
static int |
504 |
static int |