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

Function lagg_port_state

freebsd/net/if_lagg.c:2196–2211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2194}
2195
2196static void
2197lagg_port_state(struct ifnet *ifp, int state)
2198{
2199 struct lagg_port *lp = (struct lagg_port *)ifp->if_lagg;
2200 struct lagg_softc *sc = NULL;
2201
2202 if (lp != NULL)
2203 sc = lp->lp_softc;
2204 if (sc == NULL)
2205 return;
2206
2207 LAGG_XLOCK(sc);
2208 lagg_linkstate(sc);
2209 lagg_proto_linkstate(sc, lp);
2210 LAGG_XUNLOCK(sc);
2211}
2212
2213struct lagg_port *
2214lagg_link_active(struct lagg_softc *sc, struct lagg_port *lp)

Callers

nothing calls this directly

Calls 2

lagg_linkstateFunction · 0.85
lagg_proto_linkstateFunction · 0.85

Tested by

no test coverage detected