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

Function lagg_fail_start

freebsd/net/if_lagg.c:2387–2401  ·  view source on GitHub ↗

* Active failover */

Source from the content-addressed store, hash-verified

2385 * Active failover
2386 */
2387static int
2388lagg_fail_start(struct lagg_softc *sc, struct mbuf *m)
2389{
2390 struct lagg_port *lp;
2391
2392 /* Use the master port if active or the next available port */
2393 if ((lp = lagg_link_active(sc, sc->sc_primary)) == NULL) {
2394 if_inc_counter(sc->sc_ifp, IFCOUNTER_OERRORS, 1);
2395 m_freem(m);
2396 return (ENETDOWN);
2397 }
2398
2399 /* Send mbuf */
2400 return (lagg_enqueue(lp->lp_ifp, m));
2401}
2402
2403static struct mbuf *
2404lagg_fail_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m)

Callers

nothing calls this directly

Calls 4

lagg_link_activeFunction · 0.85
if_inc_counterFunction · 0.85
lagg_enqueueFunction · 0.85
m_freemFunction · 0.50

Tested by

no test coverage detected