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

Function lagg_port_checkstacking

freebsd/net/if_lagg.c:891–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889
890#ifdef LAGG_PORT_STACKING
891static int
892lagg_port_checkstacking(struct lagg_softc *sc)
893{
894 struct lagg_softc *sc_ptr;
895 struct lagg_port *lp;
896 int m = 0;
897
898 LAGG_SXLOCK_ASSERT(sc);
899 CK_SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) {
900 if (lp->lp_flags & LAGG_PORT_STACK) {
901 sc_ptr = (struct lagg_softc *)lp->lp_ifp->if_softc;
902 m = MAX(m, lagg_port_checkstacking(sc_ptr));
903 }
904 }
905
906 return (m + 1);
907}
908#endif
909
910static void

Callers 1

lagg_port_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected