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

Function lagg_stop

freebsd/net/if_lagg.c:1289–1308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1287}
1288
1289static void
1290lagg_stop(struct lagg_softc *sc)
1291{
1292 struct ifnet *ifp = sc->sc_ifp;
1293
1294 LAGG_XLOCK_ASSERT(sc);
1295
1296 if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0)
1297 return;
1298
1299 ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
1300
1301 lagg_proto_stop(sc);
1302
1303 mtx_lock(&sc->sc_mtx);
1304 callout_stop(&sc->sc_watchdog);
1305 mtx_unlock(&sc->sc_mtx);
1306
1307 callout_drain(&sc->sc_watchdog);
1308}
1309
1310static int
1311lagg_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)

Callers 2

lagg_clone_destroyFunction · 0.85
lagg_ioctlFunction · 0.85

Calls 3

lagg_proto_stopFunction · 0.85
mtx_lockFunction · 0.50
mtx_unlockFunction · 0.50

Tested by

no test coverage detected